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

Make netcdf mandatory #473

Merged
merged 3 commits into from
Dec 12, 2024
Merged

Make netcdf mandatory #473

merged 3 commits into from
Dec 12, 2024

Conversation

ecomodeller
Copy link
Member

@ecomodeller ecomodeller commented Dec 4, 2024

Comparer.load, Comparer.save and ComparerCollection.load, ComparerCollection.save uses the NetCDF format for persistence.

NetCDF is a standardized format, which will allow you to open these files in the future and with other software.

The collection uses a zip file of NetCDF files at least until PR #461 gets merged, when this will be a single file with groups similar to a file system.

@ecomodeller
Copy link
Member Author

Python 3.9 runs fine since it install the second latest version of MIKEIO, which is missing the py.typed file.

Collecting mikeio>=1.2 (from modelskill==1.1.dev0)
  Downloading mikeio-2.1.3-py3-none-any.whl.metadata (7.8 kB)

@jsmariegaard
Copy link
Member

@ecomodeller could you please let us know why netcdf4 should be a required dependency to modelskill - I guess many users would be just fine with dfs and csv files and never use nc files?

@ecomodeller
Copy link
Member Author

I think they want to save and load the Comparer instead of waiting to read the raw files each time.

@jsmariegaard
Copy link
Member

right - I forgot about save/load 😳

Copy link
Member

@jsmariegaard jsmariegaard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@jsmariegaard jsmariegaard merged commit 05a6eee into main Dec 12, 2024
6 checks passed
@jsmariegaard jsmariegaard deleted the netcdf_dependency branch December 12, 2024 13:11
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 this pull request may close these issues.

2 participants