-
Notifications
You must be signed in to change notification settings - Fork 53
Remove qwdata documentation, tests, etc. and replace with waterdata.get_samples() #178
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
491eb5c
remove usage of qwdata
ehinman c9c91ad
remove more qwdata examples and add note in get_record
ehinman 12320f3
qwdata no longer a service
ehinman 81dc0b5
update hydroshare wq example
ehinman 0e58bb2
forgot one reference to qwdata
ehinman e5d4da4
move samples function to waterdata.py
ehinman 8f89fc5
remove code from samples module, etc.
ehinman b360a65
make samples a wrapper for waterdata
ehinman ade5b59
specify waterdata imports
ehinman f4b7dc7
Update dataretrieval/nwis.py
ehinman 46cb9e8
Update dataretrieval/samples.py
ehinman d1f6e7b
fix function call
ehinman bfa921d
remove old warning text
ehinman 530ba4f
add nldi to documentation site, add contact in readme
ehinman e5b892f
edit readme, change indent of name error
ehinman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -157,14 +157,10 @@ def get_discharge_measurements( | |
| Parameters | ||
| ---------- | ||
| sites: string or list of strings, optional, default is None | ||
| If the qwdata parameter site_no is supplied, it will overwrite the | ||
| sites parameter | ||
| start: string, optional, default is None | ||
| If the qwdata parameter begin_date is supplied, it will overwrite the | ||
| start parameter (YYYY-MM-DD) | ||
| start: string, optional, default is None | ||
| Supply date in the format: YYYY-MM-DD | ||
| end: string, optional, default is None | ||
| If the qwdata parameter end_date is supplied, it will overwrite the | ||
| end parameter (YYYY-MM-DD) | ||
| Supply date in the format: YYYY-MM-DD | ||
| ssl_check: bool, optional | ||
| If True, check SSL certificates, if False, do not check SSL, | ||
| default is True | ||
|
|
@@ -1071,7 +1067,6 @@ def get_record( | |
| service: string, default is 'iv' | ||
| - 'iv' : instantaneous data | ||
| - 'dv' : daily mean data | ||
| - 'qwdata' : discrete samples | ||
| - 'site' : site description | ||
| - 'measurements' : discharge measurements | ||
| - 'peaks': discharge peaks | ||
|
|
@@ -1100,9 +1095,6 @@ def get_record( | |
| >>> # Get latest daily mean data from site 01585200 | ||
| >>> df = dataretrieval.nwis.get_record(sites="01585200", service="dv") | ||
|
|
||
| >>> # Get all discrete sample data from site 01585200 | ||
| >>> df = dataretrieval.nwis.get_record(sites="01585200", service="qwdata") | ||
|
|
||
| >>> # Get site description for site 01585200 | ||
| >>> df = dataretrieval.nwis.get_record(sites="01585200", service="site") | ||
|
|
||
|
|
@@ -1169,16 +1161,9 @@ def get_record( | |
| return df | ||
|
|
||
| elif service == "qwdata": | ||
| df, _ = get_qwdata( | ||
| site_no=sites, | ||
| begin_date=start, | ||
| end_date=end, | ||
| multi_index=multi_index, | ||
| wide_format=wide_format, | ||
| ssl_check=ssl_check, | ||
| **kwargs, | ||
| ) | ||
| return df | ||
| return print("qw data are no longer available from" \ | ||
| "NWIS. Please use `samples.get_usgs_samples()` instead." \ | ||
| " If you have questions, please reach out to [email protected]") | ||
|
|
||
| elif service == "site": | ||
| df, _ = get_info(sites=sites, ssl_check=ssl_check, **kwargs) | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Raise an exception here. Something like:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed as an option for a service. Put back in?