Skip to content
Snippets Groups Projects

HealPixPrior (Resloves Issue #419)

Merged Bruce Edelman requested to merge bruce.edelman/bilby:joint_prior into master

Hi all, This MR introduces a HealPixMapPriorDist object to be used to create a 2D or 3D joint prior in ra/dec (ra/dec/distance) according to a passed in HealPix map or .fits file to address and resolve issue #419 (closed).

This PriorObject inherits from BaseJointPriorDist and needs to overwrite three methods (_rescale(), _sample(), and _lnprob()) To illustrate this is working I sample 5000 samples from the prior and show below that these samples are distribvuted according to whats in the HealPix Map .fits file. HealPixPriorSamplingCheck

Here I show that the _rescale() method is also working by generating 5000 samples uniformly on [0,1] then rescale to the HealPixPrior which also matches with what is in the map file. HealPixPriorRescaleCheck

Edited by Bruce Edelman

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
  • Bruce Edelman added 1 commit

    added 1 commit

    • c67aaf05 - remove map / self.map from variable naming

    Compare with previous version

  • Bruce Edelman mentioned in merge request !668 (merged)

    mentioned in merge request !668 (merged)

  • Bruce Edelman added 228 commits

    added 228 commits

    Compare with previous version

  • Bruce Edelman added 1 commit

    added 1 commit

    • b81b6be3 - updated joint_prior branch (includes healpy map prior) to match with...

    Compare with previous version

  • Bruce Edelman added 1 commit

    added 1 commit

    Compare with previous version

  • Bruce Edelman added 1 commit

    added 1 commit

    • cda39f7f - fixed 9/10 of failing prior tests. STILL NEED TO FIGURE OUT JSON ENCODING

    Compare with previous version

  • Bruce Edelman added 1 commit

    added 1 commit

    Compare with previous version

  • Bruce Edelman added 2 commits

    added 2 commits

    • e5b0b834 - three d healpix map prior passing CI tests now
    • d402d097 - fix flake8

    Compare with previous version

  • Bruce Edelman unmarked as a Work In Progress

    unmarked as a Work In Progress

  • Bruce Edelman resolved all threads

    resolved all threads

  • Bruce Edelman added 15 commits

    added 15 commits

    Compare with previous version

  • Bruce Edelman added 2 commits

    added 2 commits

    Compare with previous version

  • Bruce Edelman added 1 commit

    added 1 commit

    Compare with previous version

  • Bruce Edelman added 23 commits

    added 23 commits

    Compare with previous version

  • Bruce Edelman added 1 commit

    added 1 commit

    Compare with previous version

  • Bruce Edelman added 1 commit

    added 1 commit

    • 6c81650f - fix lnprob method for 2d healpix priors

    Compare with previous version

  • Bruce Edelman added 25 commits

    added 25 commits

    Compare with previous version

  • Bruce Edelman resolved all threads

    resolved all threads

  • Bruce Edelman added 1 commit

    added 1 commit

    • 1971448d - fixed many sampling when distance = NaN

    Compare with previous version

  • Bruce Edelman added 1 commit

    added 1 commit

    • edbe0001 - fixed distance sampling, still need to fix distance rescale / ppf

    Compare with previous version

  • Bruce Edelman added 1 commit

    added 1 commit

    Compare with previous version

  • Bruce Edelman added 1 commit

    added 1 commit

    Compare with previous version

  • Bruce Edelman added 1 commit

    added 1 commit

    Compare with previous version

  • Bruce Edelman changed title from HealPixPrior / JointPrior (Issue #419 (closed)) to HealPixPrior (Resloves Issue #419 (closed))

    changed title from HealPixPrior / JointPrior (Issue #419 (closed)) to HealPixPrior (Resloves Issue #419 (closed))

  • Bruce Edelman changed the description

    changed the description

  • Bruce Edelman added 1 commit

    added 1 commit

    • 275ea0ee - fixed lnprob and hanging warning

    Compare with previous version

  • Bruce Edelman added 1 commit

    added 1 commit

    • 79ae7608 - fixed the distance sampling so we always get positive and not NaN or None distances

    Compare with previous version

  • Bruce Edelman added 1 commit

    added 1 commit

    Compare with previous version

  • Bruce Edelman added 1 commit

    added 1 commit

    Compare with previous version

  • Bruce Edelman changed the description

    changed the description

  • Bruce Edelman added 1 commit

    added 1 commit

    • 13030179 - remove some unwanted changes

    Compare with previous version

  • Bruce Edelman added 1 commit

    added 1 commit

    • 14ee918e - make update_distance() method faster

    Compare with previous version

  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading