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
convolve_unc allow 1D input arrays for uncertainty #278
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.
Notes from the review together with @anupam-prasad
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.
Suggested changes stated on @mgrub 's comments.
suggested by @anupam-prasad
suggested by @anupam-prasad
suggested by @anupam-prasad
suggested by @anupam-prasad
Changes should be included now. |
- better expresses that it mainly distinguishes between None/np.ndarray suggested by @BjoernLudwigPTB
- use np.squeeze(a) instead of a.squeeze() to also support list or tuple
Codecov Report
@@ Coverage Diff @@
## rename_master_to_main #278 +/- ##
=========================================================
- Coverage 77.29% 76.68% -0.61%
=========================================================
Files 29 29
Lines 2233 2239 +6
Branches 361 362 +1
=========================================================
- Hits 1726 1717 -9
- Misses 381 393 +12
- Partials 126 129 +3
Continue to review full report at Codecov.
|
co-authored by @BjoernLudwigPTB
co-authored by @BjoernLudwigPTB
…lementation" This reverts commit ec401dc.
This reverts commit c26b035.
This reverts commit 0c133f5.
This reverts commit 2458630.
This reverts commit e196cc4.
The failed check in the preview job is no problem, as long as we merge first into the rename branch as suggested and configured. |
For convenience, this implements the use of 1D-arrays for
U1
andU2
inPyDynamic.uncertainty.convolve_unc
to specify the standard uncertainties instead of full covariance matrices.Specification of uncertainties using full covariance matrices remains possible and the output is still returned as full covariance matrix. Hence, no breaking change is introduced.
This PR makes required changes on: