v0.6.0
v0.6.0 (24 October 2022)
In this release, we updated the Model API
by renaming staticgeoms to geoms, adding a new maps object and removing abstract methods. We also added new general subclasses to Model: GridModel
, LumpedModel
, MeshModel
, NetworkModel
. These new subclasses have their own objects (e.g. grid for GridModel representing regular grids which replaces the old staticmaps object). More details in the list below:
Added
- ModelCatalog to discover generic and plugin model classes.
PR #202 <https://github.com/Deltares/hydromt/pull/202>
_ - Support for 2-dimensional tabular data through the new DataFrameAdapter.
PR #153 <https://github.com/Deltares/hydromt/pull/153>
_ - API calls to get info about model components and dataset for the dashboard.
PR #118 <https://github.com/Deltares/hydromt/pull/118>
_ - New submodelclasses in hydromt:
GridModel
,LumpedModel
,MeshModel
,NetworkModel
- Added entrypoints for lumped_model, mesh_model, grid_model
- New mixin classes created for model specific object:
GridMixin
for self.grid,LumpedMixin
for self.response_units,MeshMixin
for self.mesh,
MapsMixin
for self.maps - New high-level object: self.maps for storing regular rasters data (which can have resolution and / or projection).
- Maps generic setup methods:
MapsMixin.setup_maps_from_raster
andMapsMixin.setup_maps_from_rastermapping
- Mesh generic setup methods:
MeshModel.setup_mesh
,MeshMixin.setup_maps_from_raster
andMeshMixin.setup_maps_from_rastermapping
Changed
- self.staticgeoms object and methods renamed to self.geoms
- self.staticmaps object and methods renamed to self.grid and moved into GridModel and GridMixin
Fixed
- Bug in backward compatibility of staticgeoms (not read automatically).
Issue #190 <https://github.com/Deltares/hydromt/issues/190>
_ - Direct import of xarray.core.resample.
Issue #189 <https://github.com/Deltares/hydromt/issues/189>
_ - Bug in dim0 attribute of raster, removed instead of set to None if no dim0
Issue #210 <https://github.com/Deltares/hydromt/issues/210>
Deprecated
- self.staticgeoms and self.staticmaps are deprecated.