-
Notifications
You must be signed in to change notification settings - Fork 93
Eppt 2354 Extend humidity mixing ratio and update standardise behaviour #2105
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
Eppt 2354 Extend humidity mixing ratio and update standardise behaviour #2105
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think a different approach to this would be more robust.
improver/psychrometric_calculations/psychrometric_calculations.py
Outdated
Show resolved
Hide resolved
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2105 +/- ##
==========================================
+ Coverage 98.39% 98.45% +0.05%
==========================================
Files 124 137 +13
Lines 12212 13631 +1419
==========================================
+ Hits 12016 13420 +1404
- Misses 196 211 +15 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All tests pass (one exception, although this test also fails in master
so I have ignored it). The code makes sense.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few comments which might help simplify the code but generally I think the code is doing what we need.
improver/psychrometric_calculations/psychrometric_calculations.py
Outdated
Show resolved
Hide resolved
improver_tests/psychrometric_calculations/test_HumidityMixingRatio.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One mis-placed comment to remove but otherwise I'm happy with the functionality of this.
improver_tests/psychrometric_calculations/test_HumidityMixingRatio.py
Outdated
Show resolved
Hide resolved
This PR has substantially changed since I reviewed it and the changes I asked for have been made.
Addresses #GitHubissuenum
https://metoffice.atlassian.net/browse/EPPT-2354
Description
Humidity Mixing Ratio extended
Virtual Temperature Units
This seems to be because of an issue with the Iris / cf-units multiplication. (See Virtual Temperature - replace Iris multiply with Numpy #2107)As a result it has been necessary to
update the Virtual Temperature plugin toadd back the expected units after the calculationuse Numpy multiplication in the Virtual Temperature calculation to multiply the temperature by the humidity mixing ratioupdate the epp-workflows code to use the dask scheduler "processes" to avoid the race conditions encountered when using the in house "multiprocessing" scheduler.Standardise air_temperature flag
Testing:
CLA
8000