Skip to content

Commit 67d1904

Browse files
author
Collin Capano
committed
update inference 6
1 parent 1f8fe71 commit 67d1904

File tree

4 files changed

+83
-31
lines changed

4 files changed

+83
-31
lines changed

tutorial/inference_6_advanced_config_settings/IntroToPyCBCInference.ipynb

Lines changed: 39 additions & 14 deletions
Large diffs are not rendered by default.

tutorial/inference_6_advanced_config_settings/bbh_example-src_masses.ini

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,15 +95,23 @@ name = uniform_sky
9595
; polarization prior
9696
name = uniform_angle
9797

98-
;
99-
; Convert variable parameters to parameters understood
100-
; by the waveform generator
101-
;
10298
[waveform_transforms-spin1x+spin1y+spin1z]
103-
name = spherical_spin_1_to_cartesian_spin_1
99+
name = spherical_to_cartesian
100+
x = spin1x
101+
y = spin1y
102+
z = spin1z
103+
radial = spin1_a
104+
polar = spin1_polar
105+
azimuthal = spin1_azimuthal
104106

105107
[waveform_transforms-spin2x+spin2y+spin2z]
106-
name = spherical_spin_2_to_cartesian_spin_2
108+
name = spherical_to_cartesian
109+
x = spin2x
110+
y = spin2y
111+
z = spin2z
112+
radial = spin2_a
113+
polar = spin2_polar
114+
azimuthal = spin2_azimuthal
107115

108116
[waveform_transforms-mass1]
109117
name = custom

tutorial/inference_6_advanced_config_settings/bbh_example.ini

Lines changed: 29 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
[model]
22
name = gaussian_noise
3-
h1-low-frequency-cutoff = 20
4-
l1-low-frequency-cutoff = 20
3+
low-frequency-cutoff = 20
54

65
[sampler]
76
name = emcee_pt
@@ -16,7 +15,7 @@ burn-in-test = nacl & max_posterior
1615

1716
[variable_params]
1817
; waveform parameters that will vary in MCMC
19-
tc =
18+
delta_tc =
2019
mass1 =
2120
mass2 =
2221
spin1_a =
@@ -38,11 +37,10 @@ approximant = IMRPhenomPv2
3837
f_lower = 20
3938
f_ref = 20
4039

41-
[prior-tc]
42-
; coalescence time prior
40+
[prior-delta_tc]
4341
name = uniform
44-
min-tc = 1126259462.32
45-
max-tc = 1126259462.52
42+
min-delta_tc = -0.1
43+
max-delta_tc = 0.1
4644

4745
[prior-mass1]
4846
name = uniform
@@ -100,11 +98,33 @@ name = uniform_angle
10098
; Convert variable parameters to parameters understood
10199
; by the waveform generator
102100
;
101+
; The waveform generator expects spins to be in cartesian coordinates, with
102+
; names spin(1|2)(x|y|z). We therefore need to provide a waveform transform
103+
; that converts the spherical coordinates that we have defined the spin prior
104+
; in to cartesian coordinates.
103105
[waveform_transforms-spin1x+spin1y+spin1z]
104-
name = spherical_spin_1_to_cartesian_spin_1
106+
name = spherical_to_cartesian
107+
x = spin1x
108+
y = spin1y
109+
z = spin1z
110+
radial = spin1_a
111+
polar = spin1_polar
112+
azimuthal = spin1_azimuthal
105113

106114
[waveform_transforms-spin2x+spin2y+spin2z]
107-
name = spherical_spin_2_to_cartesian_spin_2
115+
name = spherical_to_cartesian
116+
x = spin2x
117+
y = spin2y
118+
z = spin2z
119+
radial = spin2_a
120+
polar = spin2_polar
121+
azimuthal = spin2_azimuthal
122+
123+
[waveform_transforms-tc]
124+
; we need to provide tc to the waveform generator
125+
name = custom
126+
inputs = delta_tc
127+
tc = ${data|trigger-time} + delta_tc
108128

109129
;
110130
; Sampling transforms

tutorial/inference_6_advanced_config_settings/gw170817_example-common_eos.ini

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
[model]
22
name = marginalized_phase
3-
h1-low-frequency-cutoff = 20
4-
l1-low-frequency-cutoff = 20
3+
low-frequency-cutoff = 20
54

65
[sampler]
76
name = emcee_pt

0 commit comments

Comments
 (0)