- 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.
- A release without change to match the version of other HyRiver packages.
- 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 theflat
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.
- Drop support for
shapely<2
.
- Remove dependency on
dask
. - Reduce complexity of the code by breaking down the
_check_inputs
function into_get_variables
and_get_dates
functions.
- Fix a bug in computing snow where the
t_snow
argument was not being converted to Kelvin.
- If
snow=True
is passed to bothget_bygeom
andget_bycoords
functions, thevariables
argument will be checked to see if it containsprcp
andtemp
, if not, they will be added to the list of variables to be retrieved. This is to ensure that thesnow
argument works as expected.
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.
- Add
source
argument to bothget_bygeom
andget_bycoords
functions. Valid values for source aregrib
(default) andnetcdf
. Both return the same values, the latter also offers additional variablepsurf
for surface pressure. Valid variable names fornetcdf
are:prcp
,pet
,wind_u
,wind_v
,humidity
,temp
,rsds
,rlds
,psurf
Valid variable names forgrib
source are unchanged as to not introduce breaking changes. By Luc Rébillout. - For now, retain compatibility with
shapely<2
while supportingshapley>=2
.
- Add
snow
andsnow_params
arguments to bothget_bygeom
andget_bycoords
functions for computing snow fromprcp
andtemp
. - Rewrite
by_coords
functions to improve performance and reduce memory usage. Also, itsto_xarray
argument now returns a much better structuredxarray.Dataset
. Moreover, the function has a new argument calledcoords_id
which allows the user to specify IDs for the input coordinates. This is useful for cases where the coordinates belong to some specific features, such as station location, that have their own IDs. These IDs will be used for both cases where the data is returned aspandas.DataFrame
orxarray.Dataset
.
- Sync all minor versions of HyRiver packages to 0.14.0.
- Fully migrate
setup.cfg
andsetup.py
topyproject.toml
. - Convert relative imports to absolute with
absolufy-imports
. - Sync all patch versions of HyRiver packages to x.x.12.
- Refactor the
show_versions
function to improve performance and print the output in a nicer table-like format.
- Fix an issue where for single variable, i.e., not a list, could not be detected correctly.
- Fix an issue in converting the response from the service to a dataframe or dataset when service fails and throws an error.
- Initial release.