-
Notifications
You must be signed in to change notification settings - Fork 89
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
Mobt 496 enforce forecast consistency #1900
Mobt 496 enforce forecast consistency #1900
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1900 +/- ##
==========================================
+ Coverage 96.99% 98.32% +1.33%
==========================================
Files 119 120 +1
Lines 11329 11376 +47
==========================================
+ Hits 10989 11186 +197
+ Misses 340 190 -150
|
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 have looked through all your changes, and they generally look sensible and like they do what they are supposed to 👍 I just have a few minor comments for you to look at.
I have run the unit and acceptance tests, and they all run fine, apart from one. There was one failure in improver_tests/test_source_code.py in test_init_files_exist(), where there was an AssertionError.
Thanks for your review @Katie-Howard. I've responded to your 2 review comments. I haven't been able to reproduce the failure of |
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've looked through the comments and changes and I'm happy with this. If the unit tests pass for you, it must be something on my system.
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.
Thanks @brhooper 👍
I've added some very minor comments.
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.
Thanks @brhooper 👍
I've added a few queries.
…force_forecast_consistency
…it and acceptance tests for realization data. Update checksum for new acceptance test data.
…ability reference forecasts.
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.
Thanks @brhooper 👍
I've added a few minor comments.
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.
Thanks @brhooper 👍
I've added a few minor comments.
This PR now seems fine to me and can be merged when an associated suite change is made. |
* Remove obsolete enforce_consistent_probabilities code. Update checksums * Add plugin and CLI for general enforcement of forecast consistency. Add corresponding unit and acceptance tests. * Fix error in acceptance test. * Corrections to formatting. * Remove obsolete module import. * Update docstrings. * Minor change following review. * Minor changes following review * Updated checksums following reduction in acceptance test data size * Update docstrings to include applications to realization data. Add unit and acceptance tests for realization data. Update checksum for new acceptance test data. * Add limitation that only the identity function can be applied to probability reference forecasts. * Formatting corrections * Minor changes following review. Update checksums for change to acceptance test data.
Addresses https://github.com/metoppv/mo-blue-team/issues/496
Creates a plugin and corresponding CLI which enables the general enforcement of consistency between a forecast cube and a linear transformation of a reference cube. This plugin specifically includes the functionality to enforce consistency between cloud amount probability forecasts (here), enforcing consistency between wind gust and wind speed percentile forecasts (here), and should also provide a general solution to requirements for enforcing consistency between forecast cubes when future use-cases arise.
The previous specific implementation of a plugin to enforce consistency between cloud amount forecasts is removed.
Acceptance test data: metoppv/improver_test_data#6
Description
Testing: