Skip to content

Fix external nowcast only zeros - #566

Merged
RubenImhoff merged 2 commits into
masterfrom
fix-external-nowcast
Aug 7, 2026
Merged

Fix external nowcast only zeros#566
RubenImhoff merged 2 commits into
masterfrom
fix-external-nowcast

Conversation

@mats-knmi

Copy link
Copy Markdown
Contributor

I thought I fixed this in #546, but I realized now that an external nowcast does not necessarily have to have nan's at the edge (especially in our usecase where we run the external nowcast on a larger domain to explicitly prevent this).

This should not be an issue if it were not for the bug where, if there are no nan's anywhere in the domain, the code that is supposed to fill this part with values from nwp will simply set the entire domain to 0.

The simple fix is to not try to fill in the nan's when there are no nan's anywhere in the domain.

@mats-knmi
mats-knmi requested a review from RubenImhoff August 4, 2026 09:37
@codecov

codecov Bot commented Aug 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.64%. Comparing base (45824f2) to head (7e239da).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #566   +/-   ##
=======================================
  Coverage   84.64%   84.64%           
=======================================
  Files         170      170           
  Lines       15095    15095           
=======================================
  Hits        12777    12777           
  Misses       2318     2318           
Flag Coverage Δ
unit_tests 84.64% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 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.

@RubenImhoff RubenImhoff left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice work, looks good to me!

@RubenImhoff
RubenImhoff merged commit ba4bfea into master Aug 7, 2026
10 checks passed
@RubenImhoff
RubenImhoff deleted the fix-external-nowcast branch August 7, 2026 02:44
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