ESMValGroup / ESMValCore

ESMValCore: A community tool for pre-processing data from Earth system models in CMIP and running analysis scripts.
https://www.esmvaltool.org
Apache License 2.0
42 stars 38 forks source link

Remove custom fix for concatenation of aux factories now that bug in iris is solved #2392

Closed schlunma closed 4 months ago

schlunma commented 4 months ago

Description

For at least 6 years, iris dropped derived coordinates (i.e., aux factories) during concatenation (see https://github.com/SciTools/iris/issues/2478). For this reason, we implemented our own custom code to solve this:

https://github.com/ESMValGroup/ESMValCore/blob/1f73cc0ca565d37b51c295e558da0f6883a2e8f1/esmvalcore/preprocessor/_io.py#L39

Since the issue is solved now since iris 3.5, this PR removes the corresponding custom code in ESMValCore. I did not remove a tiny test that checks if the actual concatenation still works; and indeed, it does (also without our custom code) πŸš€

Closes #2284


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:

codecov[bot] commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 94.28%. Comparing base (d128753) to head (f8832e7).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #2392 +/- ## ========================================== - Coverage 94.29% 94.28% -0.01% ========================================== Files 246 246 Lines 13532 13511 -21 ========================================== - Hits 12760 12739 -21 Misses 772 772 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

schlunma commented 4 months ago

Well, the good code is now in iris, so I don't feel too bad about it πŸ˜„