Closed ecomodeller closed 7 months ago
Some engines, e.g. MIKE She specifies a file $\Delta t = 0.0$, which could not be correctly interpreted by MIKE IO (actually pd.DateTimeIndex).
pd.DateTimeIndex
This PR warns when $\Delta t <= 0.0$ or raises an error if number of timesteps > 1 (where the files would be invalid).
Example of reading a previously unreadable file:
Some engines, e.g. MIKE She specifies a file $\Delta t = 0.0$, which could not be correctly interpreted by MIKE IO (actually
pd.DateTimeIndex
).This PR warns when $\Delta t <= 0.0$ or raises an error if number of timesteps > 1 (where the files would be invalid).
Example of reading a previously unreadable file:![image](https://github.com/DHI/mikeio/assets/614215/4c27969e-3aa9-49bf-8bc4-a4b0893cebb3)