-
Notifications
You must be signed in to change notification settings - Fork 39
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
Fix for pr of EC_EARTH #1116
Fix for pr of EC_EARTH #1116
Conversation
except iris.exceptions.CoordinateNotFoundError: | ||
pass | ||
|
||
return new_list |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@remi-kazeroni a bit of a style note - it's best to have a try/except clause with as little code to try as possible - just one try condition gets executed anyway, and it also looks more readable: try: single clause on one line / except (not clause): raise
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@valeriupredoi I have modified the fix to take your suggestion into account. Would that work for you now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good, cheers!
I mark this PR as RfR even if the tests are failing. I have tried to cover 3 cases:
|
Tests are now fixed. @valeriupredoi would you have a moment to review this PR? This is my last IPCC related fix. It would be great if we could have it in the next release but I understand this is short notice 😬 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
very cool @remi-kazeroni 🍺
except iris.exceptions.CoordinateNotFoundError: | ||
pass | ||
|
||
return new_list |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good, cheers!
Description
Removes erroneously duplicated points in the time coordinate for the last file (time range 2000-2009).
Closes #1111
Link to documentation:
Before you get started
Checklist
It is the responsibility of the author to make sure the pull request is ready to review. The icons indicate whether the item will be subject to the 🛠 Technical or 🧪 Scientific review.
To help with the number pull requests: