Skip to content

Move private _(global)_stock_cube from esmvacore.preprocessor._regrid to cmorizer#2087

Merged
valeriupredoi merged 3 commits intomasterfrom
move_private_stock_cube_inside_cmorizer
Mar 19, 2021
Merged

Move private _(global)_stock_cube from esmvacore.preprocessor._regrid to cmorizer#2087
valeriupredoi merged 3 commits intomasterfrom
move_private_stock_cube_inside_cmorizer

Conversation

@valeriupredoi
Copy link
Copy Markdown
Contributor

Private import and on top of it all, func changed name from _stock_cube to _global_stock_cube. A bit clunky since I had to move a host of global variables but heyho, more secure now.

@valeriupredoi
Copy link
Copy Markdown
Contributor Author

can I pls get an OK for this one guys, tests are failing coz of the need for this 👍 🍺

@valeriupredoi valeriupredoi requested a review from schlunma March 19, 2021 14:10
@schlunma
Copy link
Copy Markdown
Contributor

Code looks good (I guess you just copy-pasted from ESMValCore, right?)! But it probably wouldn't hurt to test the output of the CMORizer and compare it to the old version. I will do that briefly!

@valeriupredoi
Copy link
Copy Markdown
Contributor Author

many thanks, Manu 🍺

Copy link
Copy Markdown
Contributor

@schlunma schlunma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to fix the CMORizer because of a

iris.exceptions.UnitConversionError: Cannot convert from unknown units. The "cube.units" attribute may be set directly.

but the output is identical to the data we have stored on mistral (I only checked the years 1961 and 1962 though to save computation time) 👍

@valeriupredoi
Copy link
Copy Markdown
Contributor Author

@schlunma you a total trooper, cheers bro! 🍺

@valeriupredoi valeriupredoi merged commit f04aa17 into master Mar 19, 2021
@valeriupredoi valeriupredoi deleted the move_private_stock_cube_inside_cmorizer branch March 19, 2021 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants