Skip to content

Conversation

@ehinman
Copy link
Collaborator

@ehinman ehinman commented Jun 2, 2025

This PR updates documentation to refer to waterdata.get_samples() rather than nwis.get_qwdata.

@ehinman ehinman requested a review from thodson-usgs June 9, 2025 15:57
@ehinman ehinman marked this pull request as ready for review June 9, 2025 15:57
@thodson-usgs
Copy link
Collaborator

You don't think we're ready to move get_samples into a wdfn module?

@ehinman ehinman changed the title Remove qwdata documentation, tests, etc. and replace with get_usgs_samples() Remove qwdata documentation, tests, etc. and replace with waterdata.get_samples() Jun 9, 2025
@ehinman
Copy link
Collaborator Author

ehinman commented Jun 9, 2025

You don't think we're ready to move get_samples into a wdfn module?

Following our discussion today, I have moved get_usgs_samples to the waterdata module and called it get_samples. I also changed all references from qwdata to get_samples.

@ehinman
Copy link
Collaborator Author

ehinman commented Jun 23, 2025

@thodson-usgs this is ready for review.

Copy link
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.

Looks good, just ensure your tests path with any accepted changes.

**kwargs,
)
return df
return print("qw data are no longer available from" \
Copy link
Collaborator

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:

raise ValueError(
    "qwdata endpoint was decomissioned.",
    "Please use `samples.get_usgs_samples()` instead."
)

Copy link
Collaborator Author

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?

ehinman and others added 7 commits June 24, 2025 17:09
@ehinman ehinman merged commit 2c8419c into DOI-USGS:main Jun 25, 2025
11 checks passed
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.

2 participants