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

Adds a warning for iris.coord_categorisation.add_season_membership that this is not saveable as a boolean coordinate. #6305

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

HGWright
Copy link
Contributor

@HGWright HGWright commented Feb 5, 2025

🚀 Pull Request

Description

This addresses #5909, by raising a warning that since this adds a boolean, the result will not be saveable to a Netcdf file since it contains a boolean coordinate.

Note for reviewer:
I was not 100% sure on the type of error to raise either iris.warnings.IrisSaveWarning or iris.warnings.IrisCfSaveWarning since this a problem with Netcdf files.

Copy link

codecov bot commented Feb 5, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.85%. Comparing base (61e04b9) to head (7c3f7e7).
Report is 62 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6305      +/-   ##
==========================================
- Coverage   89.88%   89.85%   -0.03%     
==========================================
  Files          88       88              
  Lines       23315    23402      +87     
  Branches     4338     4356      +18     
==========================================
+ Hits        20956    21029      +73     
- Misses       1628     1646      +18     
+ Partials      731      727       -4     

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

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.

iris.coord_categorisation.add_season_membership creates a boolean coordinate that cannot be saved to netcdf
1 participant