Refactor preprocessor settings related to fx files#522
Conversation
|
very nice, dude! I reckon this is disentangled enough to be able to plug in the changes that we'll have to make for the iris-way of handling the fx variables for preproc too. DO you want to disentangle |
|
I would be very grateful if you could do it. |
|
on it, mate 🍺 |
|
what say you @zklaus ? |
…_functionality-klaus-suggestion
|
there seems to be an issue with github, I merged the parent and fixed the conflict but it's not showing - and now I cant even comment :grrr: |
|
ahh it's back now |
|
to merge or not to merge, dis iz the question :hamlet: - what do you reckon @zklaus 🍺 |
|
I think it's a good step forward, so merge. Next step: unify For this it might be helpful to note that Looking at line 534 we notice that when the update method is called, the settings parameter already contains the pertinent subsection so that the manual distinction in lines 520, 524, and 528 is unnecessary. Indeed, this automatic determination of fx variables makes one wonder if that could replace the manual listing of |
This comment has been minimized.
This comment has been minimized.
|
but |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Well, in one we place the fx file as determined by |
|
|
|
But why is that needed for some files, but not for others? What if a custom order is applied and both mask and area files have been regridded, for instance? |
|
@zklaus and @valeriupredoi I renamed the pull request that hopefully describes what happens here. Note that I use those pull request titles in the change log, so it would be great if you could keep an eye on that they make sense to other people too. |
|
yeah good call man - can you not rename the parent just yet pls? I will rename it to something similar but only after merge (if it'll ever happen 😁 ) but I need the parent-child denominator so I know what's left to be done; and I will close #439 after too |
Hi @valeriupredoi, this is more the kind of refactoring I had in mind. I think it is clearer and more easily extensible for future preprocessors. It's left to also unify
_update_fx_settings_maskand_update_fx_settings_stats, which should be possible if one untangles the 6 levels of indentation in the stats method, but at the moment I am out of time.