Skip to content

Commit

Permalink
ddlpy 0.4.0 release (#91)
Browse files Browse the repository at this point in the history
* updated docstring

* Bump version: 0.3.1 → 0.4.0

* updated history.rst
  • Loading branch information
veenstrajelmer authored Apr 8, 2024
1 parent d343edf commit d65ce06
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.3.1
current_version = 0.4.0
commit = True
tag = True

Expand Down
4 changes: 2 additions & 2 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
History
=======

UNRELEASED
0.4.0 (2024-04-08)
------------------
* added `catalog_filter` argument to `ddlpy.locations()` to enabling retrieving the extended catalog in https://github.com/Deltares/ddlpy/pull/87
* pass all Code parameters to measurements request instead of only four in https://github.com/Deltares/ddlpy/pull/88
* added ddlpy.dataframe_to_xarray()` function in https://github.com/Deltares/ddlpy/pull/86

0.3.0 (2023-03-13)
0.3.0 (2024-03-13)
------------------
* improved nan filtering of measurements in https://github.com/deltares/ddlpy/pull/30
* add `ddlpy.measurements_available()` check in https://github.com/deltares/ddlpy/pull/33 and https://github.com/deltares/ddlpy/pull/58
Expand Down
2 changes: 1 addition & 1 deletion ddlpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

__author__ = """Fedor Baart"""
__email__ = '[email protected]'
__version__ = '0.3.1'
__version__ = '0.4.0'

from ddlpy.ddlpy import locations
from ddlpy.ddlpy import (measurements,
Expand Down
3 changes: 3 additions & 0 deletions ddlpy/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ def dataframe_to_xarray(df: pd.DataFrame, drop_if_constant=[]):
- All location columns are dropped and added as ds attributes
- All drop_if_constant columns are dropped and added as ds attributes (if the values are indeed constant)
The timestamps are converted to UTC since xarray does not support non-UTC timestamps.
These can be converted to different timezones after loading the netcdf and converting
to a pandas dataframe with df.index.tz_convert()
"""

# create list of columns with duplicate info (often not constant), will be dropped
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "rws-ddlpy"
version = "0.3.1"
version = "0.4.0"
maintainers = [
{ name = "Fedor Baart", email = "[email protected]"},
{ name = "Jelmer Veenstra", email = "[email protected]"},
Expand Down

0 comments on commit d65ce06

Please sign in to comment.