-
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
Refactor time operations #87
Conversation
Up until now we do not deprecate stuff, but just remove it and update all the existing recipes. Diagnostic developers with open pull requests will have to update themselves. For now I think we can keep this way of working. A minor version increase will be required for ESMValTool Core when we do this kind of thing, once we have the first official release out (in alpha versions this kind of thing is still acceptable), I've pinned the ESMValTool installation so it does not go to the next minor version and the old version will keep working. |
One of the tasks in issue #24 is to move the This function can "Determine the iris analysis operator from a string", like this. It would be good if the time_statistics functions also behaved like this. |
I didn't know you already have that. I will do it |
Do all of these time statistics functions support all input data frequencies (provided they are higher than the frequency of the statistic funtion of course)? |
Yes, there is nothing that will make them fail for any strange frequency. As long as the time coordinate is correct, they will be applied correctly |
Can you also make the associated pull request in the ESMValTool repository to fix any diagnostics that use the removed preprocessor functions? |
Co-Authored-By: Bouwe Andela <[email protected]>
Thanks @JaroCamphuijsen for helping out with code review! Note that we need to make a new release of ESMValCore after this PR is merged and only then merge the associated PR in the ESMValTool repository. |
Co-Authored-By: Jaro Camphuijsen <[email protected]>
… into dev_season_max
Computing the variance results in a crash, because this squares the units, and then the function
|
This is tricky. We want users to use the preprocessor as much as possible, but we can not add functions that affect the units... I think I will remove the variance and open an issue to discuss if we want this kind of functions to be available in the preprocessor and, if that is the case, when and how to apply the checks. |
Co-Authored-By: Jaro Camphuijsen <[email protected]>
Note that this pull request will make some parts of the paper outdated. Do not merge before we get the zenodo release for the paper |
Yep, that's why I didn't... 😃 |
@mattiarighi Zenodo archived versions with DOIs, including a new v2.0.0b1 release for the paper have now been created. Can we continue with testing/merging this? |
Will do! |
@ledm should also give his OK before I merge. |
I've checked out this branch and the related ESMValTool PR, ESMValGroup/ESMValTool#1189. I ran a couple of the edited recipes, I've also glanced through the code changes. So far, I can't see any reason to delay either PR. Everything looks great. Nice work @jvegasbsc! |
Adding other operators (min, max, median) to time, seasonal and year statistics.
Required by ESMValGroup/ESMValTool#212
I keep the seasonal_mean but probably we should prefer seasonal_statistics from now on. How are we going to manage deprecation of preprocessor functions? I think we are going to have more name changes when generalizing some of them