Skip to content

Commit

Permalink
Release v0.5.0 (#240)
Browse files Browse the repository at this point in the history
* Release prep

* Pin HydroMT core for this release
  • Loading branch information
dalmijn authored Feb 13, 2024
1 parent d00bf08 commit 0dba7cb
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 37 deletions.
8 changes: 6 additions & 2 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ All notable changes to this project will be documented in this page.
The format is based on `Keep a Changelog`_, and this project adheres to
`Semantic Versioning`_.

Unreleased
==========
v0.5.0 (February 2024)
======================
Better handling of nodata and a switch from ini to yaml for configuration.

Added
-----
Expand All @@ -28,9 +29,12 @@ Fixed

Deprecated
----------
- **read_staticmaps_pcr** in favour of same method in **pcrm** submodule
- **write_staticmaps_pcr** in favour of same method in **pcrm** submodule

Documentation
-------------
- Extra information for most of the setup methods of **WflowModel** and **WWflowSedimentModel**

v0.4.1 (November 2023)
======================
Expand Down
2 changes: 1 addition & 1 deletion hydromt_wflow/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from os.path import abspath, dirname, join

__version__ = "0.4.2.dev0"
__version__ = "0.5.0"

try:
import pcraster as pcr
Expand Down
32 changes: 0 additions & 32 deletions hydromt_wflow/wflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
from shapely.geometry import box

from . import DATADIR, utils, workflows
from .pcrm import read_staticmaps_pcr as read_pcr_func
from .pcrm import write_staticmaps_pcr as write_pcr_func

__all__ = ["WflowModel"]

Expand Down Expand Up @@ -2757,36 +2755,6 @@ def write_staticmaps(self):
)
self.write_grid()

def read_staticmaps_pcr(self, crs=4326, **kwargs):
"""Read PCRaster maps in <root/staticmaps> and add to grid."""
self.logger.warning(
"read_staticmaps_pcr as a method of this object is deprecated. "
"Use 'read_staticmaps_pcr' from the 'pcrm' submodule instead. "
"Will be removed in hydromt_wflow v0.5.0"
)
if self._read and "chunks" not in kwargs:
kwargs.update(chunks={"y": -1, "x": -1})
read_pcr_func(
self.root,
crs=crs,
obj=self,
**kwargs,
)

def write_staticmaps_pcr(self):
"""Write staticmaps at <root/staticmaps> in PCRaster maps format."""
self.logger.warning(
"write_staticmaps_pcr as a method of this object is deprecated. "
"Use 'write_staticmaps_pcr' for the 'pcrm' submodule instead. "
"Will be removed in hydromt_wflow v0.5.0"
)
if not self._write:
raise IOError("Model opened in read-only mode")
write_pcr_func(
self.staticmaps,
self.root,
)

def read_geoms(
self,
geom_fn: str = "staticgeoms",
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ authors = [
dependencies = [
"dask",
"geopandas>=0.10",
"hydromt>=0.9.1",
"hydromt>=0.9.3,<0.10",
"netcdf4",
"numpy",
"pandas",
Expand Down Expand Up @@ -70,7 +70,7 @@ doc = [
examples = [
"jupyterlab",
"cartopy",
"nbconvert==7.13.1", # Pin as of (02-2024); 7.14 onwards causes issues with the progressbar in example notebooks
"nbconvert==7.13.1", # Pin as of (02-2024); 7.14 onwards causes issues with the progressbar in example notebooks. See issue #233 for more info (https://github.com/Deltares/hydromt_wflow/issues/233).
"notebook",
]

Expand Down

0 comments on commit 0dba7cb

Please sign in to comment.