Skip to content

Commit

Permalink
add deprecation warning #254
Browse files Browse the repository at this point in the history
  • Loading branch information
OnnoEbbens committed Apr 19, 2024
1 parent e581a42 commit 993e02f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions nlmod/dims/grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,12 @@ def modelgrid_from_ds(ds, rotated=True, nlay=None, top=None, botm=None, **kwargs

def modelgrid_to_vertex_ds(mg, ds, nodata=-1):
"""Add information about the calculation-grid to a model dataset."""

logger.warning(
"'modelgrid_to_vertex_ds' is deprecated and will be removed in a"
"future version, please use 'modelgrid_to_ds' instead"
)

# add modelgrid to ds
ds["xv"] = ("iv", mg.verts[:, 0])
ds["yv"] = ("iv", mg.verts[:, 1])
Expand Down

0 comments on commit 993e02f

Please sign in to comment.