Skip to content

Commit 1f8fe71

Browse files
author
Collin Capano
committed
speed up notebook 4
1 parent c7f35f1 commit 1f8fe71

4 files changed

Lines changed: 12 additions & 10 deletions

File tree

tutorial/inference_4_bbh_example/IntroToPyCBCInference.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -269,10 +269,10 @@
269269
"metadata": {},
270270
"outputs": [],
271271
"source": [
272-
"if not os.path.exists('H-H1_GWOSC_16KHZ_R1-1126257415-4096.gwf'):\n",
273-
" !wget https://www.gw-openscience.org/catalog/GWTC-1-confident/data/GW150914/H-H1_GWOSC_16KHZ_R1-1126257415-4096.gwf\n",
274-
"if not os.path.exists('L-L1_GWOSC_16KHZ_R1-1126257415-4096.gwf'):\n",
275-
" !wget https://www.gw-openscience.org/catalog/GWTC-1-confident/data/GW150914/L-L1_GWOSC_16KHZ_R1-1126257415-4096.gwf"
272+
"if not os.path.exists('H-H1_GWOSC_4KHZ_R1-1126257415-4096.gwf'):\n",
273+
" !wget https://www.gw-openscience.org/catalog/GWTC-1-confident/data/GW150914/H-H1_GWOSC_4KHZ_R1-1126257415-4096.gwf\n",
274+
"if not os.path.exists('L-L1_GWOSC_4KHZ_R1-1126257415-4096.gwf'):\n",
275+
" !wget https://www.gw-openscience.org/catalog/GWTC-1-confident/data/GW150914/L-L1_GWOSC_4KHZ_R1-1126257415-4096.gwf"
276276
]
277277
},
278278
{

tutorial/inference_4_bbh_example/data.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ psd-segment-stride = 4
1515
; The frame files must be downloaded from GWOSC before running. Here, we
1616
; assume that the files have been downloaded to the same directory. Adjust
1717
; the file path as necessary if not.
18-
frame-files = H1:H-H1_GWOSC_16KHZ_R1-1126257415-4096.gwf L1:L-L1_GWOSC_16KHZ_R1-1126257415-4096.gwf
19-
channel-name = H1:GWOSC-16KHZ_R1_STRAIN L1:GWOSC-16KHZ_R1_STRAIN
18+
frame-files = H1:H-H1_GWOSC_4KHZ_R1-1126257415-4096.gwf L1:L-L1_GWOSC_4KHZ_R1-1126257415-4096.gwf
19+
channel-name = H1:GWOSC-4KHZ_R1_STRAIN L1:GWOSC-4KHZ_R1_STRAIN
2020
; this will cause the data to be resampled to 2048 Hz:
2121
sample-rate = 2048
2222
; We'll use a high-pass filter so as not to get numerical errors from the large

tutorial/inference_4_bbh_example/emcee_pt-gw150914_like.ini

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
[sampler]
22
name = emcee_pt
3-
nwalkers = 200
4-
ntemps = 20
3+
; for GW problems, its usually best to use 200 walkers and 20 temps;
4+
; here, we've reduced that just for a test
5+
nwalkers = 100
6+
ntemps = 2
57
effective-nsamples = 1000
6-
checkpoint-interval = 2000
8+
checkpoint-interval = 1000
79
max-samples-per-chain = 1000
810

911
[sampler-burn_in]

tutorial/inference_4_bbh_example/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ OUTPUT_PATH=bbh_results.hdf
99

1010
# the following sets the number of cores to use; adjust as needed to
1111
# your computer's capabilities
12-
NPROCS=8
12+
NPROCS=1
1313

1414
# run sampler
1515
# Running with OMP_NUM_THREADS=1 stops lalsimulation

0 commit comments

Comments
 (0)