Skip to content

Conversation

@gavinevans
Copy link

Addresses metoppv#2135

Description
This PR adds the catching of an exception that can occur if the removal of rows with NaNs from the truth DataFrame subsequently means that there are no matching rows between the forecast and truth DataFrames, in terms of the site_id (e.g. wmo_id) and time. Minor edits to the PrepareAndTrainQRF unit tests are also made.

Testing:

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

@codecov-commenter
Copy link

codecov-commenter commented Sep 25, 2025

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (mobt_877_implement_qrf@38fb827). Learn more about missing BASE report.

Files with missing lines Patch % Lines
...oad_and_train_quantile_regression_random_forest.py 0.00% 3 Missing ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@                    Coverage Diff                    @@
##             mobt_877_implement_qrf      #22   +/-   ##
=========================================================
  Coverage                          ?   95.58%           
=========================================================
  Files                             ?      142           
  Lines                             ?    14180           
  Branches                          ?        0           
=========================================================
  Hits                              ?    13554           
  Misses                            ?      626           
  Partials                          ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Kat-90 Kat-90 merged commit 2266309 into Kat-90:mobt_877_implement_qrf Sep 25, 2025
5 checks passed
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.

3 participants