Skip to content

Remove FutureWarning output from ms.match with DfsuModelResult #664

@ryan-kipawa

Description

@ryan-kipawa

When running this in a Jupyter Notebook:

cc = ms.match(observations, mod)
cc

, where observations is a list of ms.PointObservation objects and mod is a ms.DfsuModelResult object, it succeeds but with several warnings:

/usr/local/lib/python3.13/site-packages/mikeio/dataset/_dataset.py:512: FutureWarning: 'inplace' parameter is deprecated and will be removed in future versions. Use ds = ds.rename(...) instead.
  warnings.warn(
/usr/local/lib/python3.13/site-packages/mikeio/dataset/_dataset.py:512: FutureWarning: 'inplace' parameter is deprecated and will be removed in future versions. Use ds = ds.rename(...) instead.
  warnings.warn(
/usr/local/lib/python3.13/site-packages/mikeio/dataset/_dataset.py:512: FutureWarning: 'inplace' parameter is deprecated and will be removed in future versions. Use ds = ds.rename(...) instead.
  warnings.warn(
/usr/local/lib/python3.13/site-packages/mikeio/dataset/_dataset.py:512: FutureWarning: 'inplace' parameter is deprecated and will be removed in future versions. Use ds = ds.rename(...) instead.
  warnings.warn(
/usr/local/lib/python3.13/site-packages/mikeio/dataset/_dataset.py:512: FutureWarning: 'inplace' parameter is deprecated and will be removed in future versions. Use ds = ds.rename(...) instead.
  warnings.warn(
/usr/local/lib/python3.13/site-packages/mikeio/dataset/_dataset.py:512: FutureWarning: 'inplace' parameter is deprecated and will be removed in future versions. Use ds = ds.rename(...) instead.
  warnings.warn(
/usr/local/lib/python3.13/site-packages/mikeio/dataset/_dataset.py:512: FutureWarning: 'inplace' parameter is deprecated and will be removed in future versions. Use ds = ds.rename(...) instead.
  warnings.warn(
/usr/local/lib/python3.13/site-packages/mikeio/dataset/_dataset.py:512: FutureWarning: 'inplace' parameter is deprecated and will be removed in future versions. Use ds = ds.rename(...) instead.
  warnings.warn(
/usr/local/lib/python3.13/site-packages/mikeio/dataset/_dataset.py:512: FutureWarning: 'inplace' parameter is deprecated and will be removed in future versions. Use ds = ds.rename(...) instead.
  warnings.warn(
/usr/local/lib/python3.13/site-packages/mikeio/dataset/_dataset.py:512: FutureWarning: 'inplace' parameter is deprecated and will be removed in future versions. Use ds = ds.rename(...) instead.
  warnings.warn(
/usr/local/lib/python3.13/site-packages/mikeio/dataset/_dataset.py:512: FutureWarning: 'inplace' parameter is deprecated and will be removed in future versions. Use ds = ds.rename(...) instead.
  warnings.warn(
/usr/local/lib/python3.13/site-packages/mikeio/dataset/_dataset.py:512: FutureWarning: 'inplace' parameter is deprecated and will be removed in future versions. Use ds = ds.rename(...) instead.
  warnings.warn(
/usr/local/lib/python3.13/site-packages/mikeio/dataset/_dataset.py:512: FutureWarning: 'inplace' parameter is deprecated and will be removed in future versions. Use ds = ds.rename(...) instead.
  warnings.warn(
/usr/local/lib/python3.13/site-packages/mikeio/dataset/_dataset.py:512: FutureWarning: 'inplace' parameter is deprecated and will be removed in future versions. Use ds = ds.rename(...) instead.
  warnings.warn(
/usr/local/lib/python3.13/site-packages/mikeio/dataset/_dataset.py:512: FutureWarning: 'inplace' parameter is deprecated and will be removed in future versions. Use ds = ds.rename(...) instead.

modelskill version = 1.3.1
mikeio version = 3.1.0

Metadata

Metadata

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions