Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
elche6 opened this issue Feb 20, 2024 · 2 comments · Fixed by #652
Closed

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

elche6 opened this issue Feb 20, 2024 · 2 comments · Fixed by #652

Comments

@elche6
Copy link

elche6 commented Feb 20, 2024

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:

  • Python version 3.12.1
  • mikecore 0.2.1
    mikeio 1.6.3
    mikeio1d 0.6.0
@ecomodeller ecomodeller linked a pull request Feb 20, 2024 that will close this issue
@ecomodeller
Copy link
Member

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
Copy link
Author

elche6 commented Feb 20, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants