Conversation
…rately for different frequencies. Breaks a lot of tests.
…ted separately for different frequencies. Breaks a lot of tests." This reverts commit 28454c6.
|
Simple fix for the main issue here. However, once fixed i was getting some errors i found rather confusing. I have made a new issue for this, but provide more info below. When running cmor_log: Mip_convert.log: This was due to two different frequencies being added in the same mip_convert cfg. And resulted in only one of the two output .nc files being generated. In the mip_convert log this line was appearing twice: I think it may be use to cmor state not being cleared properly between the two jobs. First i made an implementation to clear the state between each job, which worked. However as Matt mentioned this may have had performance impacts with large amounts of variables. I tried to implement a way of using the frequency as a fingerprint as an alternative to keep the cmor states separate. As in our workflows streams of two different frequencies aren't used in the same mip_convert run, this refactor is taking up too much time for little current benefit. Though it would be nice to implement this as a defensive refactor at some point if the problem of two frequencies in the same mip_convert.cfg ever might be encountered in future. This is the commit that i reverted with the changes that fixed the issue, in case anyone is after a solution to that problem in future: |
|
When looking at the mip convert logs, i noticed a bug where the frequency arg was incorrectly split and printed like this: After this little fix 401a465, this now prints correctly: |
matthew-mizielinski
left a comment
There was a problem hiding this comment.
I'm happy with the change here, but we should add a functional test for ocean/zostoga_tavg-u-hm-sea (monthly). I'm happy for that to be done on a separate ticket.
I decided to try and implement the functional test. Whilst working things out i ended up running the conversion via The other commits since have been me trying to get the new monthly functional test working. Fixed some issues but currently the test is throwing quite a few differences between the KGO and test output I'll have a look at this after my annual leave next week. If anyone wants to check the request i used to generate the output i'll post a link on the chat. |
Would be good to fix the grid attribute, but note that it may be disappearing from our files (no longer a standard global attributes) #ticket_needed. The others should be fixable with a replacement of the reference data. |
…stigate_missing_depth_coords merge model fix
Closes #803