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

Do not realise coordinates in check.py #1912

Merged
merged 2 commits into from
Feb 3, 2023
Merged

Do not realise coordinates in check.py #1912

merged 2 commits into from
Feb 3, 2023

Conversation

sloosvel
Copy link
Contributor

@sloosvel sloosvel commented Jan 31, 2023

Description

This PR changes check.py so that it calls coord.core_points() and coord.core_bounds() when checking the coordinates , in order to not realise 2D latitudes and longitudes.

Closes #1906

Link to documentation:


Before you get started

Checklist

It is the responsibility of the author to make sure the pull request is ready to review. The icons indicate whether the item will be subject to the 🛠 Technical or 🧪 Scientific review.


To help with the number pull requests:

@codecov
Copy link

codecov bot commented Jan 31, 2023

Codecov Report

Merging #1912 (2cb0ac4) into main (ed3ae70) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #1912   +/-   ##
=======================================
  Coverage   92.04%   92.04%           
=======================================
  Files         234      234           
  Lines       12057    12057           
=======================================
  Hits        11098    11098           
  Misses        959      959           
Impacted Files Coverage Δ
esmvalcore/cmor/check.py 97.58% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Contributor

@valeriupredoi valeriupredoi left a comment

Choose a reason for hiding this comment

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

what a cute little, yet very useful PR, cheers @sloosvel 🍺 Do you want to tidy up the PR description boxes, please? Then tut-tut about the PR so it can be merged 👍

@sloosvel sloosvel added enhancement New feature or request cmor Related to the CMOR standard labels Feb 3, 2023
@sloosvel
Copy link
Contributor Author

sloosvel commented Feb 3, 2023

Sure, done!

@valeriupredoi
Copy link
Contributor

@ESMValGroup/technical-lead-development-team can one of you peeps have a glance at this, and merge, please? 🍺

@schlunma schlunma added this to the v2.8.0 milestone Feb 3, 2023
@schlunma schlunma merged commit 745bb6f into main Feb 3, 2023
@schlunma schlunma deleted the dev_lazy_cmor_checks branch February 3, 2023 15:46
@schlunma
Copy link
Contributor

schlunma commented Feb 3, 2023

Thanks!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cmor Related to the CMOR standard enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make check.py lazy
3 participants