-
Notifications
You must be signed in to change notification settings - Fork 38
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
Using fx_files for preprocessor fails in rare cases #448
Comments
that should not happen if the variable's frequency is |
That's exactly the problem. In |
I don't see where the problem is - i used |
aha! If you run the second bit only all goes well - if you run diag mvi and diag scatter I get that exact error |
so if you run only the first diag group it fails with |
Found the problem: The problem appears when we call the the function ESMValCore/esmvalcore/_recipe.py Line 404 in bc7c117
I though that this returns always ESMValCore/esmvalcore/cmor/table.py Lines 677 to 713 in bc7c117
L. 712 causes the trouble: It overwrites the frequency of the original var_info = var_info.copy() to work correctly. If I do that, the bug disappears. Is that replacement correct or is this |
Great work, Inspector Poirot! I am fairly sure that's a bug - but waiting for @jvegasbsc to confirm 🍺 |
Prob best if you opened a PR with that fix Manu, so we see if all tests pass and give Javi a ready made platform to make changes, if needed 🍺 |
All right, will do after #439 is merged |
You are right, @schlunma, it is not intended. In fact, the other copy call was introduced to solve a similar error. |
This is a bug in the master branch and independent from #439. I will add a PR that fixes this. |
@schlunma I tried your second recipe above (the one with
|
Sorry, I forgot to mention that you have to add the option |
* Fixed #448 * Fix bug when reading custom variables Co-authored-by: Javier Vegas-Regidor <javier.vegas@bsc.es>
Describe the bug
@bettina-gier found a funny bug: In some cases, using fx files in preprocessors (e.g for
landsea_fraction_weighting
) fails.This recipe works:
This one
fails with
Note the additional
OBS
dataset in the second case.I will try to address this in #439. I think this bug was introduced in #432. @valeriupredoi
The text was updated successfully, but these errors were encountered: