Skip to content
Snippets Groups Projects

Allow sampling in aligned spin and spin magnitude

Merged Colm Talbot requested to merge magnitude-aligned-spin-sampling into master
All threads resolved!

This MR will allow us to sample in the spin magnitude and the aligned component of the spin, rather than magnitude and tilt.

The reason to do this is that the aligned component of the spin is the best measured per component spin parameter. From preliminary tests, it looks like this will improve convergence with at least MultiNest.

Currently, this will only support the vanilla flat in magnitude, isotropic in orientation prior. It would take more effort to figure out the generic case.

This required making the CBCPriorDict a subclass of the ConditionalPriorDict, I know that people have reported seeing issues with this in the past, but I don't remember what they were. @moritz.huebner @rory-smith?

EDIT I think the issue with the conditional priors was the _check_if_prior_can_be_sampled method which I have removed. That was falling over for some conditions/constraints. I think the current version should be suitably robust.

Edited by Colm Talbot

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
    • Resolved by Colm Talbot

      @colm.talbot I originally was against making the CBC prior dict conditional because I wasn't yet quite confident that it would always work. Especially, since we were going through some reviews at that stage. I'm happy for this to be added.

      However, I can't quite guarantee that there aren't any downsides in terms of performance with the conditional prior dict compared to the regular prior dict if no conditions are used.

  • Colm Talbot added 1 commit

    added 1 commit

    Compare with previous version

  • Moritz Huebner resolved all threads

    resolved all threads

  • Moritz Huebner approved this merge request

    approved this merge request

  • Colm Talbot resolved all threads

    resolved all threads

  • Author Maintainer

    Hi @moritz.huebner we decided on today's call that we would rather avoid having large changes to the code used in GW analyses between 1.0.2 and 1.0.3 as one of these versions are likely to be wanted for O3b analyses. Can we therefore push this to 1.0.4?

  • Moritz Huebner changed milestone to %Future

    changed milestone to %Future

  • Colm Talbot marked as a Work In Progress

    marked as a Work In Progress

  • Colm Talbot resolved all threads

    resolved all threads

  • Colm Talbot added 87 commits

    added 87 commits

    Compare with previous version

  • Colm Talbot resolved all threads

    resolved all threads

  • Colm Talbot added 7 commits

    added 7 commits

    • 22e756ca...9201fde4 - 4 commits from branch master
    • d1647abd - Merge branch 'master' into magnitude-aligned-spin-sampling
    • aadc9be4 - Merge branch 'magnitude-aligned-spin-sampling' of git.ligo.org:Monash/tupak...
    • ae8ee48f - Merge remote-tracking branch 'origin' into magnitude-aligned-spin-sampling

    Compare with previous version

  • Colm Talbot resolved all threads

    resolved all threads

  • Colm Talbot added 1 commit

    added 1 commit

    • 0359d5e0 - Add sampling in in-plane spins

    Compare with previous version

  • Colm Talbot resolved all threads

    resolved all threads

  • Colm Talbot added 1 commit

    added 1 commit

    • 912fefc5 - Change how test of sampling from the prior works.

    Compare with previous version

  • Colm Talbot changed the description

    changed the description

  • Colm Talbot added 28 commits

    added 28 commits

    • 912fefc5...762568df - 25 commits from branch master
    • 3854b319 - Merge remote-tracking branch 'origin/master' into magnitude-aligned-spin-sampling
    • 5645d4e4 - Fix up documentation.
    • 02fbf2d7 - Weaken prior equivalence tests to work with conditional priors.

    Compare with previous version

  • Colm Talbot marked this merge request as ready

    marked this merge request as ready

  • Colm Talbot added 1 commit

    added 1 commit

    Compare with previous version

  • Colm Talbot added 7 commits

    added 7 commits

    Compare with previous version

  • Colm Talbot added 3 commits

    added 3 commits

    Compare with previous version

  • Gregory Ashton approved this merge request

    approved this merge request

  • Colm Talbot changed milestone to %1.1.0

    changed milestone to %1.1.0

  • Moritz Huebner approved this merge request

    approved this merge request

  • Moritz Huebner resolved all threads

    resolved all threads

  • Moritz Huebner mentioned in commit 13fbca39

    mentioned in commit 13fbca39

  • Moritz Huebner mentioned in merge request !928 (merged)

    mentioned in merge request !928 (merged)

  • Please register or sign in to reply
    Loading