#886 apply cell measures jared#955
Closed
Jared Drayton (mo-jareddrayton) wants to merge 9 commits into
Closed
Conversation
Collaborator
If it's any help (i do agree on face value that change looks confusing), those changes were made after this commit: 22530bb , at which point i was encountering this error: There's a comment i added about this on the original issue which hopefully explains it a bit: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
NOT FOR MERGING. JUST FOR DEMONSTRATION
Having spent a bit of time looking at this I personally would avoid adding this functionality to
new_variable.py/Variable.process()If you look at what is going on in
Variable.process, it is all focussed on manipulating data and metadata in the iris cubes.CDDS/mip_convert/mip_convert/new_variable.py
Lines 355 to 369 in 6048425
Whereas this change is about managing the state of the cmor singleton. So although the example I provide adds a bit more complexity to
requested_variables.pyI think it makes far more sense to keep it in this module. Especially as there is already a precedent for this with setting frequency. Doing this also avoids the circular import and cuts down the overall complexity.CDDS/mip_convert/mip_convert/requested_variables.py
Line 126 in 6048425
I'm also quite baffled by this code in general and will need to spend some more time figuring out what is actually going on here.