-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add warning message for qw data queries (#134)
* add warning message for qw data queries --------- Co-authored-by: Timothy Hodson <[email protected]>
- Loading branch information
1 parent
4eba0a2
commit 593f420
Showing
2 changed files
with
18 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -126,12 +126,14 @@ def get_qwdata( | |
.. warning:: | ||
WARNING: Beginning in February 2024 the NWIS qw data endpoint will not deliver new data or updates to existing data. | ||
WARNING: Beginning in March 2024 the NWIS qw data endpoint will | ||
not deliver new data or updates to existing data. | ||
Eventually the endpoint will be retired. For updated information visit: | ||
https://waterdata.usgs.gov.nwis/qwdata | ||
For additional details, see the R package vignette: | ||
https://doi-usgs.github.io/dataRetrieval/articles/Status.html | ||
If you have additional questions about the qw data service, email [email protected]. | ||
If you have additional questions about the qw data service, | ||
email [email protected]. | ||
Parameters | ||
---------- | ||
|
@@ -175,6 +177,12 @@ def get_qwdata( | |
... ) | ||
""" | ||
warnings.warn(('WARNING: Starting in March 2024, the NWIS qw data endpoint is ' | ||
'retiring and no longer receives updates. For more information, ' | ||
'refer to https://waterdata.usgs.gov.nwis/qwdata and ' | ||
'https://doi-usgs.github.io/dataRetrieval/articles/Status.html ' | ||
'or email [email protected].')) | ||
|
||
_check_sites_value_types(sites) | ||
|
||
kwargs['site_no'] = kwargs.pop('site_no', sites) | ||
|
@@ -758,6 +766,12 @@ def get_info(ssl_check: bool = True, **kwargs) -> Tuple[pd.DataFrame, BaseMetada | |
""" | ||
seriesCatalogOutput = kwargs.pop('seriesCatalogOutput', None) | ||
if seriesCatalogOutput in ['True', 'TRUE', 'true', True]: | ||
|
||
warnings.warn(('WARNING: Starting in March 2024, the NWIS qw data endpoint is ' | ||
'retiring and no longer receives updates. For more information, ' | ||
'refer to https://waterdata.usgs.gov.nwis/qwdata and ' | ||
'https://doi-usgs.github.io/dataRetrieval/articles/Status.html ' | ||
'or email [email protected].')) | ||
# convert bool to string if necessary | ||
kwargs['seriesCatalogOutput'] = 'True' | ||
else: | ||
|
This file contains 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