add time property to mikeio.open and add test
It was often that we only need all the datetimes in the file without reading the entire file or any item. I just add that property
Great idea - I have thinking about the same. We just need it on dfs0, 1, 2, and 3 also for consistency. At least in dfs0, we should handle non-equidistant time axis also.
And another thing I noticed: the time property should be a pd.DatetimeIndex to be consistent with the time property of Dataset/DataArray 👍
@jsmariegaard I am sorry, I was very busy that could not work on this. I hope to find some time next week to make the necessary changes.
Great. No rush.
pd.DatetimeIndex
output datetimes are in pd.DatetimeIndex, I added an assert to check for that too.
Great idea - I have thinking about the same. We just need it on dfs0, 1, 2, and 3 also for consistency. At least in dfs0, we should handle non-equidistant time axis also.
I just added the time property to dfs0 equidistant and non-equidistant time axis, will do the dfs 1, 2 and 3 later