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

Add one more acceptance test for new regridding #1508

Merged
merged 3 commits into from
Jun 1, 2021

Conversation

zfan001
Copy link
Contributor

@zfan001 zfan001 commented May 30, 2021

Addresses #1464

Description:

Add one more acceptance test for bilinear without land-sea mask awareness , as suggested by Fiona.
The new bilinear-2 regridding option should produce the same result as the original bilinear regridding option.
Therefore, this added test shares the existing kgo.nc with the original bilinear regridding test, and no new acceptance data file is required.

It addressed the last item in #1464.

Testing:

  • [Y] Ran tests and they passed OK
  • [ Y] Added new tests for the new feature(s)

@codecov
Copy link

codecov bot commented May 30, 2021

Codecov Report

Merging #1508 (eb715b2) into master (bfaed7d) will decrease coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1508      +/-   ##
==========================================
- Coverage   97.87%   97.86%   -0.01%     
==========================================
  Files         108      108              
  Lines        9392     9387       -5     
==========================================
- Hits         9192     9187       -5     
  Misses        200      200              
Impacted Files Coverage Δ
improver/standardise.py 97.18% <0.00%> (-0.12%) ⬇️
improver/regrid/grid.py 100.00% <0.00%> (ø)
improver/regrid/nearest.py 100.00% <0.00%> (ø)
improver/utilities/load.py 82.00% <0.00%> (ø)
improver/utilities/save.py 95.00% <0.00%> (ø)
improver/regrid/bilinear.py 98.88% <0.00%> (ø)
improver/regrid/landsea2.py 98.14% <0.00%> (ø)
improver/wxcode/__init__.py 100.00% <0.00%> (ø)
improver/between_thresholds.py 100.00% <0.00%> (ø)
improver/utilities/temporal.py 100.00% <0.00%> (ø)
... and 7 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bfaed7d...eb715b2. Read the comment docs.

Copy link
Contributor

@tjtg tjtg left a comment

Choose a reason for hiding this comment

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

I think this covers the identified item of having a test to show that the bilinear-2 code produces the same results as the Iris-based bilinear code as identified in #1464.
There's one minor typo I saw when reading through the changes - happy to approve this PR once that's cleaned up.

improver_tests/acceptance/test_regrid.py Outdated Show resolved Hide resolved
Co-authored-by: Tom Gale <tom@gale.app>
@zfan001 zfan001 merged commit f7af11d into metoppv:master Jun 1, 2021
@zfan001 zfan001 deleted the add_regridding_acceptance_test branch June 1, 2021 05:05
MoseleyS pushed a commit to MoseleyS/improver that referenced this pull request Aug 22, 2024
* add one more acceptance test for regridding

* change comments in test_regrid

* Update improver_tests/acceptance/test_regrid.py

Co-authored-by: Tom Gale <tom@gale.app>

Co-authored-by: Tom Gale <tom@gale.app>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants