Fix cmip6 models#629
Conversation
|
@npgillett Thank you for sharing these fixes! Could you please have a look at the code quality suggestions by Codacy? You can read more about contributing Python code in our contribution guidelines. If you do not know where to start with adding unit tests, maybe @valeriupredoi would be able to help out? |
|
I have just pushed a test for GFDL ESM4
You can write a draft test and run it immediately via Finally please run |
|
Note that for your typesi = iris.coords.AuxCoord(
'siconc',
standard_name='area_type',
long_name='Sea Ice area type',
var_name='type',
units='1',
bounds=None)since you are assigning the coordinate data (points) as |
…into fix_cmip6_models Merges updates to code with additional test for GFDL siconc.
|
Thanks @valeriupredoi and @bouweandela for the help so far! I managed to revise the code to pass the Codacy checks by adding and removing spaces etc. According to the list my code failed tests in Docker Cloud. But when I click on details I get a 404 - page not found message. What do I need to change to pass the Docker Cloud test? Thanks! |
|
Thanks @valeriupredoi for creating the test for the GFDL-ESM4 |
|
@valeriupredoi Thanks for your comment about the typesi fix above. I have to admit that I don't fully understand the fix, but I found it in an earlier version of ESMValTool - see e.g. here . The code does run without giving an error when the fix is included, but beyond this I can't verify that it is correct. How would you suggest changing this? |
Sorry about that, we're still in the process of setting that up, so you can ignore those tests for now. The tests that matter are ci/circleci and Codacy. |
Note that you can do this automatically by using |
|
I'm slightly surprised to see flake8 checks failing in code that you didn't change though, I'll have a look at that tomorrow. |
This was solved after merging the latest |
|
fixed a few things there, have a looksee @npgillett - could you pls make sure all fixes have tests attached to them? Lemme know if you need any assistance 🍺 |
|
@valeriupredoi Thanks very much for your help on this so far - would you be able to review this merge request? I have lost track of this a bit, but it looks like only the Dockercloud test is failing now, and the details link points to a page not found, so I'm not sure if that's a real problem. Hopefully we can get this merged soon... Thanks very much! |
|
sure thing Nathan @npgillett - will have a look first thing in the morning 🍺 |
Co-authored-by: Bouwe Andela <b.andela@esciencecenter.nl>
valeriupredoi
left a comment
There was a problem hiding this comment.
OK fixed all the tests and added missing ones 🍺
|
@bouweandela you wanna have another last look before I merge? 🍺 |
Before you start, please read CONTRIBUTING.md.
Tasks
If you need help with any of the tasks above, please do not hesitate to ask by commenting in the issue or pull request.
Closes #628