v1.1.4
v1.1.4 is a feature-and-cleanup release on the waterdata module: five new public getters that bring Python toward parity with the R dataRetrieval package, the formal start of the nwis deprecation (each function now emits a per-call DeprecationWarning naming its waterdata.* replacement; module removal scheduled on or after 2027-05-06), and a long tail of bug fixes across waterdata, nldi, wqp, and the shared utilities. Closes #270.
New waterdata getters
- Add
waterdata.get_peaksfor the annual peak-streamflow OGC collection by @thodson-usgs in #267 - Add
waterdata.get_ratingsfor USGS stage-discharge ratings via STAC by @thodson-usgs in #269 - Add
waterdata.get_field_measurements_metadataby @thodson-usgs in #268 - Add
waterdata.get_combined_metadatafor combined location + time-series inventory by @thodson-usgs in #264 - Add
waterdata.get_samples_summaryfor per-location sample inventory by @thodson-usgs in #262 - Add
waterdata.get_nearest_continuoushelper by @thodson-usgs in #239 - Add CQL
filter/filter_langpassthrough to OGC waterdata getters by @thodson-usgs in #238 - Isolate the filter feature behind a clean rollback flag; flag lex-comparison pitfall by @thodson-usgs in #240
Deprecations and removals
- Deprecate remaining active
nwisfunctions ahead of 2027-05-06 removal by @thodson-usgs in #271 - Deprecate
nadpmodule ahead of 2026-11-01 removal by @thodson-usgs in #243 - Remove
waterwatchmodule by @thodson-usgs in #228 - Simplify defunct stubs and fix O(n²) pagination concats by @thodson-usgs in #225
Bug fixes
- Fix
_arrange_cols: stop mutating the caller'spropertieslist by @thodson-usgs in #254 waterdata.get_stats_data: preserve geometry across continuation pages by @thodson-usgs in #255- Fix
_format_api_dates: parse ISO 8601 datetimes by @thodson-usgs in #247 - Fix
nldi: validate data source on every call, not just cache-miss by @thodson-usgs in #246 nldi: fix several user-visible bugs inget_features,get_flowlines,searchby @thodson-usgs in #252nldi: raiseValueError(notTypeError) for invalid navigation mode by @thodson-usgs in #258- Polish
wqp.py: silence prints, fix exception shape, fix typos by @thodson-usgs in #256 - Fix
wqp.get_results: preserve user-supplied WQX3.0dataProfileby @thodson-usgs in #250 - Fix
get_reference_table: propagatelimitto query args by @thodson-usgs in #248 - Make
_handle_stats_nestingtolerant of missing drop columns by @thodson-usgs in #257 - Fix
IndexErrorin_read_rdbwhen NWIS returns no data rows by @thodson-usgs in #227
Docs and hygiene
- Enrich waterdata getter docstrings with examples adapted from R by @thodson-usgs in #265
- Bump
geopandasin dev requirements to 1.1.2 to remediate GHSA-6497-prx7-gpmq by @Copilot in #235 - Use PEP 639 SPDX license identifier in
pyproject.tomlby @thodson-usgs in #226 - Skip NADP live-API tests (module deprecated) by @thodson-usgs in #259
New Contributors
- @Copilot made their first contribution in #235
Full Changelog: v1.1.3...v1.1.4