Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upper air no data available testing #207

Merged
merged 3 commits into from Apr 2, 2018

Conversation

jrleeman
Copy link
Contributor

@jrleeman jrleeman commented Mar 30, 2018

Add tests for no data available from upper air Wyoming and Iowa. Closes #205

@jrleeman jrleeman added this to the 0.7 milestone Mar 30, 2018
@@ -127,7 +127,7 @@ def _get_data_raw(self, time, site_id):
json_data = json.loads(resp.text)

# See if the return is valid, but has no data
if not json_data['profiles'][0]['profile']:
if len(json_data['profiles'])==0 or not json_data['profiles'][0]['profile']:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if not (json_data['profiles'] and json_data['profiles'][0]['profile']):

@jrleeman jrleeman force-pushed the No_Upperair_Data branch 2 times, most recently from 702bc7d to ad79fd6 Compare April 2, 2018 15:32
Copy link
Member

@dopplershift dopplershift left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just go ahead and clean up the bool issue to make Flake8 happy.

@jrleeman
Copy link
Contributor Author

jrleeman commented Apr 2, 2018

Should be good to go now.

@dopplershift dopplershift merged commit f2e5e13 into Unidata:master Apr 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants