Skip to content

Releases: hyriver/hydrosignatures

v0.18.0

05 Oct 22:01
Compare
Choose a tag to compare

Release Notes

Breaking Changes

  • Drop support for Python 3.8 since its end-of-life date is October 2024.
  • Remove all exceptions from the main module and raise them from the exceptions module. This is to declutter the public API and make it easier to maintain.

v0.17.1

14 Sep 16:41
Compare
Choose a tag to compare

Release Notes

Internal Changes

  • Drop support for Python 3.8 since its end-of-life date is October 2024.

v0.17.0

07 Jul 15:09
Compare
Choose a tag to compare

Release Notes

New Features

  • Add baseflow_recession function for computing the master recession curve and baseflow recession constant following Posavec et al. (2006).

Internal Changes

  • Add the exceptions module to the high-level API to declutter the main module. In the future, all exceptions will be raised from this module and not from the main module. For now, the exceptions are raised from both modules for backward compatibility.
  • Switch to using the src layout instead of the flat layout for the package structure. This is to make the package more maintainable and to avoid any potential conflicts with other packages.
  • Add artifact attestations to the release workflow.

v0.16.0

03 Jan 20:58
Compare
Choose a tag to compare

Release Notes

New Features

  • Add a new function called flashiness_index for computing the flashiness index of a daily streamflow time series following Baker et al. (2004).

Breaking Changes

  • Improve function naming convention by removing the compute_ prefix from all functions and spelling out the full name of the function. For example, compute_fdc_slope and compute_ai are now flow_duration_curve_slope and aridity_index, respectively.

v0.15.2

22 Sep 14:23
Compare
Choose a tag to compare

Release Notes

New Features

  • Add an option to compute_mean_monthly for specifying whether the input data unit is in mm/day or m3/s. If m3/s, then the monthly values are computed by taking the mean of the daily values for each month. If mm/day, then the monthly values are computed by taking the sum of the daily values for each month.

v0.15.0

07 May 22:50
Compare
Choose a tag to compare

Release Notes

From release 0.15 onward, all minor versions of HyRiver packages will be pinned. This ensures that previous minor versions of HyRiver packages cannot be installed with later minor releases. For example, if you have py3dep==0.14.x installed, you cannot install pydaymet==0.15.x. This is to ensure that the API is consistent across all minor versions.

Internal Changes

  • Explicitly use nopython mode in numba-decorated functions to avoid deprecation warnings.

v0.14.0

05 Mar 16:50
Compare
Choose a tag to compare

Release Notes

Bug Fixes

  • Address an issue in compute_fdc_slope where if the input includes NANs, it returns NAN. Now, the function correctly handles NAN values. Also, this function now works with any array-like input, i.e., pandas.Series, pandas.DataFrame, numpy.ndarray, and xarray.DataArray. Also, the denominator should have been divided by 100 since the input bins are percentiles.
  • Fix a bug in compute_ai where instead of using mean annual average values, daily values was being used. Also, this function now accepts xarray.DataArray too.

Internal Changes

  • Sync all minor versions of HyRiver packages to 0.14.0.

v0.1.12

10 Feb 16:17
Compare
Choose a tag to compare

Release Notes

Internal Changes

  • Fully migrate setup.cfg and setup.py to pyproject.toml.
  • Convert relative imports to absolute with absolufy-imports.
  • Sync all patch versions of HyRiver packages to x.x.12.

v0.1.2

09 Jan 04:42
Compare
Choose a tag to compare

Release Notes

New Features

  • Refactor the show_versions function to improve performance and print the output in a nicer table-like format.

Internal Changes

  • Use pyright for type checking and fix all typing issues that it raised.
  • Add xarray as a dependency.

v0.1.1

05 Nov 01:13
Compare
Choose a tag to compare

Release Notes

  • Add a new function called compute_ai for computing the aridity index.
  • Add a new function called compute_flood_moments for computing flood moments: Mean annual flood, coefficient of variation, and coefficient of skewness.
  • Add a stand-alone function for computing the FDC slope, called compute_fdc_slope.
  • Remove the runoff_ratio_annual function.