Skip to content
Snippets Groups Projects

Fixed bugs with changing max/min of priors within Cosmological and Interped classes

Merged Kaylee deSoto requested to merge kaylee.desoto/bilby:fix_distance_prior_maximum into master
All threads resolved!

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

Pipeline #140452 passed

Pipeline passed for 2812b671 on kaylee.desoto:fix_distance_prior_maximum

Approval is optional

Merged by Moritz HuebnerMoritz Huebner 4 years ago (Jul 17, 2020 8:31am UTC)

Pipeline #141923 passed

Pipeline passed for 514b1bd9 on master

Test coverage 57.00% from 0 jobs

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Is it possible to put a test together for this? I.e. does anyone have a script demonstrating the issue which we can turn into a CI test?

  • Kaylee deSoto resolved all threads

    resolved all threads

  • Kaylee deSoto added 1 commit

    added 1 commit

    • 052b121a - Changed logger.error to raise ValueError

    Compare with previous version

  • Kaylee deSoto added 14 commits

    added 14 commits

    Compare with previous version

  • Kaylee deSoto added 1 commit

    added 1 commit

    • 8edefd64 - Modified test for GW priors to check mean instead of hist values

    Compare with previous version

  • Kaylee deSoto added 1 commit

    added 1 commit

    • 2812b671 - Removed seed dependency, relaxed test condition to mean > 10000

    Compare with previous version

  • Sylvia Biscoveanu approved this merge request

    approved this merge request

  • Gregory Ashton approved this merge request

    approved this merge request

  • Moritz Huebner changed milestone to %1.0.1

    changed milestone to %1.0.1

  • added Priors label

  • Moritz Huebner mentioned in commit 514b1bd9

    mentioned in commit 514b1bd9

  • mentioned in issue #474 (closed)

  • Please register or sign in to reply
    Loading