Fixed bugs with changing max/min of priors within Cosmological and Interped classes
Within the Interped (core) class, it now yields an error if the maximum is increased (or minimum decreased) post-initialization. The attributes min_limit and max_limit keep track of the original boundaries of the provided arrays, such that the maximum can be decreased and then later increased back to the original value without yielding errors.
Within the Cosmological (gw) class, the distance arrays are recalculated when the boundaries are extended, so the maximum can be increased (or minimum decreased) post-initialization.
Merge request reports
Activity
- Automatically resolved by Kaylee deSoto
added 14 commits
-
052b121a...2d9665c8 - 12 commits from branch
lscsoft:master
- e4eb26b5 - Merge branch 'master' of https://git.ligo.org/lscsoft/bilby into fix_distance_prior_maximum
- 3d95fd40 - Added prior maximum increase test to GW prior tests
-
052b121a...2d9665c8 - 12 commits from branch
added 1 commit
- 8edefd64 - Modified test for GW priors to check mean instead of hist values
added 1 commit
- 2812b671 - Removed seed dependency, relaxed test condition to mean > 10000
changed milestone to %1.0.1
added Priors label
mentioned in commit 514b1bd9
mentioned in issue #474 (closed)