You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: utils/example_plots/methods_paper_plots/fig_16_Chirpmass_distribution/COMPAS_Output_Definitions.txt
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,7 @@ bse_sysparms_rec += { # set t
16
16
BINARY_PROPERTY::OPTIMISTIC_COMMON_ENVELOPE, # Optimistic CE flag
17
17
BINARY_PROPERTY::IMMEDIATE_RLOF_POST_COMMON_ENVELOPE, # Flag to indicate if either star overflows its Roche lobe immediately following common envelope event.
# we should fix this one day - we should not assume that the COMPAS executable
40
-
# is in the 'src' directory. The standard is to put the object files created
41
-
# by the compile into the 'obj' directory, and the executable files created by
42
-
# the link in the 'bin' directory.
43
-
#
44
-
# for now though, because this is how everybody expects it to be, we'll just check
45
-
# that the path to the root directory (the parent directory of the directory in
46
-
# which we expect the executable to reside - for now, 'src') is set to something.
47
-
48
-
compas_root_dir=os.environ.get('COMPAS_ROOT_DIR')
49
-
assertcompas_root_dirisnotNone, "Unable to locate the COMPAS executable: check that the environment variable COMPAS_ROOT_DIR is set correctly, and the COMPAS executable exists."
50
-
51
-
# construct path to executable
52
-
#
53
-
# ideally we wouldn't have the 'src' directory name (or any other directory name)
54
-
# prepended to the executable name - if we just execute the executable name on its
55
-
# own, as long as the user navigates to the directory in which the executable resides
56
-
# they don't need to set the COMPAS_ROOT_DIR environment variable
# check that a file with the correct name exists where we expect it to
63
-
assertos.path.isfile(compas_executable), "Unable to locate the COMPAS executable: check that the environment variable COMPAS_ROOT_DIR is set correctly, and the COMPAS executable exists."
64
-
65
-
66
36
enable_warnings=False# option to enable/disable warning messages
67
37
68
-
number_of_systems=int(1e2) # number of systems per batch
38
+
number_of_systems=10#number of systems per batch
69
39
70
40
populationPrinting=False
71
41
72
42
randomSeedFileName='randomSeed.txt'
73
43
ifos.path.isfile(randomSeedFileName):
74
44
random_seed=int(np.loadtxt(randomSeedFileName))
75
45
else:
76
-
random_seed=0# If you want a random seed, use: np.random.randint(2,2**63-1)
46
+
random_seed=0# If you want a random seed, use: np.random.randint(2,2**63-1)
77
47
78
48
# environment variable COMPAS_LOGS_OUTPUT_DIR_PATH is used primarily for docker runs
79
49
# if COMPAS_LOGS_OUTPUT_DIR_PATH is set (!= None) it is used as the value for the
80
50
# --output-path option
81
51
# if COMPAS_LOGS_OUTPUT_DIR_PATH is not set (== None) the current working directory
82
52
# is used as the value for the --output-path option
# How to recreate/edit the BBH chirp mass distribution from the COMPAS methods paper
2
+
3
+
This folder contains everything you need to reproduce the BBH chirpmass distribution from the COMPAS methods paper (_arXiv_: https://arxiv.org/abs/2109.10352; Team COMPAS et al. 2021).
4
+
5
+
6
+
The data used for this figure is publicly available at: https://zenodo.org/record/5655483
7
+
8
+
This data set contains the output of 10,000,000 binaries evolved using COMPAS 02.21.00, using adaptive importance sampling (STROOPWAFEL, Broekgaarden et al. 2019), sampling from a metallicity uniform in $\log(Z) \in [10^{-4},0.03]$. More details can be found in `Run_Details.txt`.
9
+
10
+
### Data reporduction
11
+
The data can be reproduced by running version `02.21.00` of COMPAS,
12
+
13
+
1. Run `stroopwafel_interface.py`, that reads in the `Fig16_pythonSubmit.py.py` (both contained in this folder).
14
+
2. Calculate the rates by running ```FastCosmicIntegration.py``` from COMPAS's post-processing tools, with the following flags altered from their default values:
0 commit comments