Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various changes (unit tests, scripts from private repositories) #1012

Merged
merged 17 commits into from
May 15, 2019

Conversation

schlunma
Copy link
Contributor

@schlunma schlunma commented Apr 7, 2019

This PR contains several changes:

  • Unit tests for esmvaltool.diag_scripts.shared.io and esmvaltool.diag_scripts.shared.iris_helpers
  • Fix and derivation scripts from the private repositories which should be available in the public repo
  • Various smaller optimizations
  • Update of recipe_flato13ipcc with recent CMIP6 models.

@bouweandela bouweandela requested a review from jvegreg April 17, 2019 14:55
Copy link
Member

@bouweandela bouweandela left a comment

Choose a reason for hiding this comment

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

Please see the comments below. Also, I think it is more important to add unit tests for the preprocessor (i.e. fixes and derive functions) than for diagnostic code, so it would be good if you could add that too.

ValueError
Given coordinate differs for the input cubes.

"""
coord = None
if isinstance(cubes, dict):
Copy link
Member

Choose a reason for hiding this comment

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

Same comment here

@schlunma
Copy link
Contributor Author

schlunma commented May 6, 2019

I addressed all comments, added units tests for the preprocessor and fix files and removed the fixes for the CMIP6 models (see discussion in #983).

Copy link
Member

@bouweandela bouweandela left a comment

Choose a reason for hiding this comment

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

Code looks good, but I have not tested running this.

@mattiarighi mattiarighi merged commit d0faaba into version2_development May 15, 2019
@mattiarighi mattiarighi deleted the version2_diag_scripts_shared_tests branch May 15, 2019 10:26
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.

3 participants