-
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
Avoid mutating the input cubes when building the combined cube in preprocessor function multi_model_statistics
#2564
Avoid mutating the input cubes when building the combined cube in preprocessor function multi_model_statistics
#2564
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2564 +/- ##
=======================================
Coverage 94.97% 94.97%
=======================================
Files 254 254
Lines 14747 14748 +1
=======================================
+ Hits 14006 14007 +1
Misses 741 741 ☔ View full report in Codecov by Sentry. |
Just commenting to say that this fixes the issue, the new portrait plot recipe runs successfully with this Pr as tested by @lukruh and me. |
It looks like non-lazy statistics operators will soon be a thing of the past (last one in-progress in SciTools/iris#6167), so maybe it's not worth it to spend time on writing tests for this case. |
I tested this last Friday with
The good news is that the recipe runs successfully now. The bad news is that it takes more than 6 hours to run (with the threaded scheduler); in the previous recipe testing, it finished in ~45min. The main reason seems to be diagnostics with the variable
Here is an example log: job_14827486.out.log I also did a test with the distributed scheduler, but that failed (my guess would be that something is not fully lazy, but I didn't investigate this further). Probably also not related to this PR. |
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.
Tested this again with the distributed scheduler, this time with 8GB of memory per worker instead of 4GB. The recipe now ran successfully in 45min. Merging this now 🚀
That seems slow indeed, it used to run in about 15 minutes for v2.8. |
Description
Avoid mutating the input cubes when building the combined cube in preprocessor function
multi_model_statistics
.Issue was introduced in #2518 and is not present in any released version of the tool.
Closes #2559
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: