DHI / mikeio

Read, write and manipulate dfs0, dfs1, dfs2, dfs3, dfsu and mesh files.
https://dhi.github.io/mikeio
BSD 3-Clause "New" or "Revised" License
136 stars 53 forks source link

When trying to append multiple non-equidistant DFS0 following error message pops up #653

Closed elche6 closed 4 months ago

elche6 commented 4 months ago

Describe the bug When trying to append multiple non-equidistant DFS0 following error message pops up 'DfsNonEqCalendarAxis' object has no attribute 'TimeStep' See below image attached . image 49

I try to append multiple non-equidistant DFS0 : from mikeio import generic mikeio.generic.concat([File_name_2015, File_name_2016,File_name_2017,File_name_2018,File_name_2019,File_name_2020,File_name_2021], "Stream_flow.dfs0")

also when I try to append two non equidistant DFS0 files that have a time gap in between them the following error message. 'Gap in time axis detected - not supported' See attached image. image 48

To Reproduce Steps to reproduce the behavior: just to run the attached code including the DFS0 files. Also Error messages in attached images.

Include code snippet

Expected behavior Just to append the DFS0 files including gaps or not and independent of equidistant or non-equidistant

Screenshots If applicable, add screenshots to help explain your problem. Images attached 2015 Streamflow Summary.zip

System information:

ecomodeller commented 4 months ago

Hi @elche6 , could you help me verify that the changes work as expected?

If you install the dev version from the main branch, it should work now.

pip install https://github.com/DHI/mikeio/archive/main.zip
elche6 commented 4 months ago

Hi @ecomodeller Verified. Changes work as expected. Thank you very much.