History#
0.19.3 (2025-03-07)#
New Features#
Move the plotting functionality of PyGeoHydro for signatures to this package. HydroSignatures now has a
plotmodule with two public functions:signaturesandprepare_plot_data.
0.19.0 (2025-01-17)#
Internal Changes#
A release without change to match the version of other HyRiver packages.
0.18.0 (2024-10-05)#
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
exceptionsmodule. This is to declutter the public API and make it easier to maintain.
0.17.1 (2024-09-14)#
Internal Changes#
A release without change to match the version of other HyRiver packages.
0.17.0 (2024-05-07)#
New Features#
Add
baseflow_recessionfunction for computing the master recession curve and baseflow recession constant following Posavec et al. (2006).
Internal Changes#
Add the
exceptionsmodule 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
srclayout instead of theflatlayout 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.
0.16.0 (2024-01-03)#
New Features#
Add a new function called
flashiness_indexfor 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_slopeandcompute_aiare nowflow_duration_curve_slopeandaridity_index, respectively.
0.15.2 (2023-09-22)#
New Features#
Add an option to
compute_mean_monthlyfor 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.
0.15.0 (2023-05-07)#
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
nopythonmode innumba-decorated functions to avoid deprecation warnings.
0.14.0 (2023-03-05)#
Bug Fixes#
Address an issue in
compute_fdc_slopewhere 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, andxarray.DataArray. Also, the denominator should have been divided by 100 since the input bins are percentiles.Fix a bug in
compute_aiwhere instead of using mean annual average values, daily values was being used. Also, this function now acceptsxarray.DataArraytoo.
Internal Changes#
Sync all minor versions of HyRiver packages to 0.14.0.
0.1.12 (2023-02-10)#
Internal Changes#
Fully migrate
setup.cfgandsetup.pytopyproject.toml.Convert relative imports to absolute with
absolufy-imports.Sync all patch versions of HyRiver packages to x.x.12.
0.1.2 (2023-01-08)#
New Features#
Refactor the
show_versionsfunction to improve performance and print the output in a nicer table-like format.
Internal Changes#
Use
pyrightfor type checking and fix all typing issues that it raised.Add
xarrayas a dependency.
0.1.1 (2022-11-04)#
New Features#
Add a new function called
compute_aifor computing the aridity index.Add a new function called
compute_flood_momentsfor 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.
Breaking Changes#
Remove the
runoff_ratio_annualfunction.
0.1.0 (2022-10-03)#
First release on PyPI.