-
Notifications
You must be signed in to change notification settings - Fork 168
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
Bugfix reproducibility & ensemble member order with dask #347
Conversation
…o dask multi-threading (pySTEPS#337)
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #347 +/- ##
==========================================
- Coverage 83.34% 83.32% -0.02%
==========================================
Files 161 161
Lines 12364 12363 -1
==========================================
- Hits 10305 10302 -3
- Misses 2059 2061 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Nice job @mpvginde! This looks fantastic and I'm curious to hear from @RubenImhoff about #337. I was wondering, should we add an explicit test on reproducibility? |
Great work, @mpvginde! I will have a look at the PR later this week. :) |
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.
Hi @mpvginde, great work! This indeed solves the issue. I know that the same issues occurs when using the LINDA nowcasting model. Would a similar fix work there, too?
Hi @mpvginde should we try to push your fixes quickly to master and release them? Do you need any support of the issues that are still open or you think this is now ready to be merged? |
Hi @dnerini, I did notice that the method used for generating the random numbers is using some deprecated numpy-functions. |
Brilliant! Just wondering if we should include the fix for the
maybe you're using a older version of black locally? during tests we are using the latest available version |
alright, I'm merging this, thanks a lot @mpvginde for the nice contribution! |
This PR (hopefully) fixes 2 issues:
#337: Strange artifacts showing up in the STEPS nowcasting due to the random order of the ensemble members in the numpy array when using dask multi-threading
#346: No reproducibility of the (blended) STEPS nowcast results even when a fixed seed argument is given