-
Notifications
You must be signed in to change notification settings - Fork 0
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
Refactoring of the grid handling to possibly support more complex data structures #33
base: main
Are you sure you want to change the base?
Conversation
🚀 🚀 🚀 |
After all this machinery, everything is now working as it was originally, meaning that the A lot of things must be still improved:
Long terms ideas
|
@jhardenberg @mnurisso this can be considered ready to me. I will move the remaining issues (e.g. the creation of a class for generation of weights) to new issues and possibly develop this in the future. It will be interesting to see which of the features of AQUA should be moved here for a cleaner operativity. For example, now all the dimensions guessing is done inside smmregrid so it should be completely redundant what is done in AQUA. Also, given the properties of the tool, also the grid are generator can be moved here as a specific class (or a twin object of the generation of weights). |
@@ -21,7 +21,8 @@ jobs: | |||
strategy: | |||
fail-fast: false | |||
matrix: | |||
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | |||
#python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | |||
python-version: ["3.12"] |
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.
Has this to be reverted?
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.
not really, it is a lot of calculation, we might want to avoid
@@ -29,7 +29,7 @@ jobs: | |||
environment-file: environment.yml | |||
environment-name: smmregrid | |||
cache-downloads: true | |||
cache-environment: true | |||
cache-environment: false |
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.
I'd revert this as well before merging
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.
well, it depends if we keep or not the python matrix. I have noticed test failure when retrieving the cached env with matrix active, not fully sure if these are related though.
I spotted a couple of cases that slipped through the tests, most importantly the one when the |
Trying to address #34, first tests are positive. We need to extract more information from the CDO weights, since there are data structure details on which we can build |
I created a new class I tried to divide the many options available in order that the ones CDO-related all fill into the class while the other goes into the method. Feel free to suggest improvements. I still need to write some tests to check everything works as expected, but it is quite straightforward since I am using direct cdo calls. |
A first tests of
GridInspector()
class and somegridtype
based operation as discussed in #32Target is still far but the idea is in place.