Skip to content

v1.1.4

Choose a tag to compare

@thodson-usgs thodson-usgs released this 07 May 01:39
· 44 commits to main since this release
18f831f

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_peaks for the annual peak-streamflow OGC collection by @thodson-usgs in #267
  • Add waterdata.get_ratings for USGS stage-discharge ratings via STAC by @thodson-usgs in #269
  • Add waterdata.get_field_measurements_metadata by @thodson-usgs in #268
  • Add waterdata.get_combined_metadata for combined location + time-series inventory by @thodson-usgs in #264
  • Add waterdata.get_samples_summary for per-location sample inventory by @thodson-usgs in #262
  • Add waterdata.get_nearest_continuous helper by @thodson-usgs in #239
  • Add CQL filter / filter_lang passthrough 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

Bug fixes

  • Fix _arrange_cols: stop mutating the caller's properties list 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 in get_features, get_flowlines, search by @thodson-usgs in #252
  • nldi: raise ValueError (not TypeError) 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.0 dataProfile by @thodson-usgs in #250
  • Fix get_reference_table: propagate limit to query args by @thodson-usgs in #248
  • Make _handle_stats_nesting tolerant of missing drop columns by @thodson-usgs in #257
  • Fix IndexError in _read_rdb when NWIS returns no data rows by @thodson-usgs in #227

Docs and hygiene

New Contributors

  • @Copilot made their first contribution in #235

Full Changelog: v1.1.3...v1.1.4