Dfs0.read re-implements the _valid_item_numbers / item-info slicing sequence that _Dfs123 performs for dfs1/2/3. The duplication is why Dfs0.read() has drifted from the others in signature (it has no keepdims).
Extracting the shared step is a prerequisite for enforcing one read signature across the readers.
Code sites:
src/mikeio/dfs/_dfs0.py (Dfs0.read)
Dfs0.readre-implements the_valid_item_numbers/ item-info slicing sequence that_Dfs123performs for dfs1/2/3. The duplication is whyDfs0.read()has drifted from the others in signature (it has nokeepdims).Extracting the shared step is a prerequisite for enforcing one read signature across the readers.
Code sites:
src/mikeio/dfs/_dfs0.py (Dfs0.read)