Skip to content

Remove nwis.py functions with defunct services#216

Closed
ehinman wants to merge 5 commits intoDOI-USGS:mainfrom
ehinman:remove-gwlevels-measurements
Closed

Remove nwis.py functions with defunct services#216
ehinman wants to merge 5 commits intoDOI-USGS:mainfrom
ehinman:remove-gwlevels-measurements

Conversation

@ehinman
Copy link
Copy Markdown
Collaborator

@ehinman ehinman commented Feb 25, 2026

Add name errors and deprecation language for:
get_gwlevels
get_discharge_measurements
get_pmcodes
get_water_use

I did not edit the example notebooks from Hydroshare. Are these still being used? Should they be updated or removed?

@ehinman ehinman requested a review from thodson-usgs February 25, 2026 16:25
@thodson-usgs thodson-usgs changed the title Remove nwis.py functions with deprecated services Remove nwis.py functions with defunct services Feb 25, 2026
Copy link
Copy Markdown
Collaborator

@thodson-usgs thodson-usgs left a comment

Choose a reason for hiding this comment

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

I haven't confirmed whether these APIs are defunct. Assuming they are, I approve.

Please note that deprecated does not mean defunct, and it's important to keep them straight so we don't confuse users.

Comment on lines +152 to +154
Get discharge measurements from the waterdata service -
deprecated, use `get_field_measurements()` in the waterdata
module.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
Get discharge measurements from the waterdata service -
deprecated, use `get_field_measurements()` in the waterdata
module.
This endpoint is defunct, use `get_field_measurements()` in the waterdata
module.

Rephrase as you like.

@ehinman ehinman marked this pull request as ready for review February 26, 2026 00:29
@ldecicco-USGS
Copy link
Copy Markdown
Collaborator

Scanning through this, I agree that the api's that are listed in this PR as "defunk" are GONE, and the ones listed as "deprecated" are still around but have a better waterdata equivalent.

@thodson-usgs
Copy link
Copy Markdown
Collaborator

Sorry. I linted the package before merging this, so I might close this and redo it.

thodson-usgs added a commit to thodson-usgs/dataretrieval-python that referenced this pull request Apr 2, 2026
@ehinman
Copy link
Copy Markdown
Collaborator Author

ehinman commented Apr 2, 2026

Thanks @thodson-usgs and @ldecicco-USGS!!

thodson-usgs added a commit that referenced this pull request Apr 3, 2026
Remove defunct nwis functions (recreation of PR #216)
@thodson-usgs
Copy link
Copy Markdown
Collaborator

Closed by #222

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.

3 participants