Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2993 +/- ##
=======================================
Coverage 95.69% 95.69%
=======================================
Files 267 267
Lines 15733 15749 +16
=======================================
+ Hits 15055 15071 +16
Misses 678 678 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| operations that are more efficient with other packages (e.g., loading files | ||
| with lots of variables is much faster with Xarray than Iris). | ||
|
|
||
| Warning |
There was a problem hiding this comment.
Removed this as users cannot do anything about this, it seems more like a note for developers.
|
I am trying to understand why this change is necessary. Has this been broken since #2579? I am also not too happy to drop support for Maybe the clearer solution would be to not treat EDIT: I forgot about the multi-model preprocessor functions. They may ingest and return |
Partly: returning an xarray or ncdata dataset has never worked because When I changed the thing that gets passed into
Allowing
I agree that we need a better solution, but let's look at that for the next release. I thought I would keep the amount of changes here to a minimum, therefore this only reinstates support for using |
|
All right, that makes sense. I will test this Thursday once Levante is back again! Regarding Looking forward to a clean solution to this for the next release! |
but it shouldn't should it - what can we do with an Xarray down the preprocessing lanes?
Nein, gefreiter! We need to let those in since we are able to load: Zarr with Xarray, netCDF4 with Xarray etc - promptly to be changed to Cube via ncdata, as I am saying above |
I thought the idea was to do the xarray/ncdata -> iris conversion in the fix function. But anyway, let's leave it like that. Will test it now! |
schlunma
left a comment
There was a problem hiding this comment.
Code looks good, recipes run fine! Thanks!
Description
The preprocessor function
fix_fileis currently broken if it actually fixes a file, it works fine if no fix is implemented. This pull request:fix_fileso its return type is compatible with what is expected by the functionesmvalcore.preprocessor.preprocess. In practice, the 4 currently implemented fix_file methods all return paths.attributesproperty on the original input file for recording provenance if fixes have been applied.ref/recipe_ref_scatterplot.yml.Follow up work containing examples of a
fix_filemethod that returns cubes in #2999Closes #3001
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: