Skip to content
Snippets Groups Projects

Add mass2 and chi_eff to the reweighting script

Merged Sylvia Biscoveanu requested to merge postprocessing into master
2 unresolved threads

No longer using my code for the PDB reweighting, just need to add mass2 and chi_eff to the reweighting script since those are being shown in the new figure.

Edited by Sylvia Biscoveanu

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
reweight_pdb.py 0 → 100644
1 import bilby
2 import h5py
3 import pandas as pd
4 import numpy as np
5 from tqdm import tqdm
6 import gwpopulation
7
8 gwpopulation.set_backend("cupy")
9 from gwpopulation.cupy_utils import xp, to_numpy
10
11 xp.random.seed(200105)
12 outdir = "/home/michael.zevin/projects/o4/gw230529/analysis_results/"
13 result = bilby.core.result.read_in_result(
14 outdir + "populations/PowerlawDipBreak/production/with_230529_mass_h_result.json"
    • Apologies if this is obvious, but where do you have gwpopulation.models.mass.power_law_dip_break()? You don't seem to have gwpopulation as a submodule to this repo. I'm sure I could find your fork of gwpopulation but I just want to make sure I go to the right branch and version, etc.

    • I made a provisional conda environment where I installed your fork of gwpopulation (from the pending MR that adds the power_law_dip_break model) just to make sure this works. But my plan was to just ask to source the conda environment you're using for the full PDB analysis to actually run the "production" version of this script.

    • Please register or sign in to reply
  • added 1 commit

    Compare with previous version

  • added 1 commit

    Compare with previous version

  • Sylvia Biscoveanu changed title from Add PDB reweighting script to Add mass2 and chi_eff to the reweighting script

    changed title from Add PDB reweighting script to Add mass2 and chi_eff to the reweighting script

  • Sylvia Biscoveanu changed the description

    changed the description

  • mentioned in commit 327c5627

  • Please register or sign in to reply
    Loading