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

MAINT: fix Data.print_data_info() #215

Merged
merged 1 commit into from
Feb 1, 2024
Merged

Conversation

fkuehlein
Copy link
Collaborator

  • remove printing Dataset.file_format for h5netcdf compatibility
  • alternatively introduce strict netCDF4-python dependency

A rather bold fix, but probably the easiest one. Could not find an alternative attribute to print instead of file_format.

Any objections?

- remove printing `Dataset.file_format` for `h5netcdf` compatibility
- alternatively introduce strict `netCDF4-python` dependency
@fkuehlein fkuehlein linked an issue Jan 24, 2024 that may be closed by this pull request
@fkuehlein fkuehlein added this to the Release 0.7 milestone Jan 24, 2024
Copy link

codecov bot commented Jan 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (9779716) 60.72% compared to head (2b9e724) 60.73%.
Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #215   +/-   ##
=======================================
  Coverage   60.72%   60.73%           
=======================================
  Files          44       44           
  Lines        6357     6356    -1     
=======================================
  Hits         3860     3860           
+ Misses       2497     2496    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ntfrgl
Copy link
Member

ntfrgl commented Feb 1, 2024

If there is no other reliance on the legacy API, then I agree that this is the best solution.

@ntfrgl ntfrgl merged commit b34c2ab into master Feb 1, 2024
3 checks passed
@fkuehlein fkuehlein deleted the 210-Dataset_file_format branch February 2, 2024 08:51
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.

Printing ClimateData object throws KeyError from h5netcdf
2 participants