You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Require explicit item and z_item on VerticalObservation / VerticalModelResult
Drops the positional defaults (`z_item=0`, `item=None` with 2-column auto-pick).
A vertical profile's depth axis and value column are the defining inputs;
defaulting them to "column 0" / "column 1" is a position-based assumption in
an API that should be name-based. The same flaw exists on TrackObservation
and TrackModelResult but those have real users and will get a separate
deprecation PR; vertical is alpha and can break cleanly.
Internal transforms (`sel`, `trim`, etc.) reach the constructors via the
base `_create_new_instance` which calls `self.__class__(data)` with no
kwargs. Two overrides reconstruct `item` from `self.name` and use
`z_item="z"` (always renamed by the parser), preserving the prevalidated-
dataset path without leaking sentinel defaults into the public signature.
Two other internal call sites that bypassed `_create_new_instance`
(`comparison/_comparison.py` and `comparison/_vertical_comparison.py`)
now go through it for consistency.
Also fixes a docstring typo (`mikeio.Dfs0, mikeio.Dfs0` -> `mikeio.Dfs0,
mikeio.Dataset`) and switches both data-arg docstrings from type-listing
to semantic description.
0 commit comments