Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions compas_python_utils/preprocessing/sampleMoeDiStefano.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,13 +393,13 @@ def createParameterDistributionsAndSampler(testing=False):
# Slope = -2.3 for M1 > 1 Msun
fM1 = np.power(M1, -2.3)

# Slope = -1.6 for M1 = 0.5 - 1.0 Msun
# Slope = -2.3 for M1 = 0.5 - 1.0 Msun (corrected value; in Mads code slope value was -1.6)
ind = np.where(M1 <= 1.)
fM1[ind] = np.power(M1[ind], -1.6)
fM1[ind] = np.power(M1[ind], -2.3)

# Slope = -0.8 for M1 = 0.15 - 0.5 Msun
# Slope = -1.3 for M1 = 0.15 - 0.5 Msun (corrected value; in Mads code slope value was -0.8)
ind = np.where(M1 <= 0.5)
fM1[ind] = np.power(M1[ind], -0.8) / np.power(0.5, 1.6-0.8)
fM1[ind] = np.power(M1[ind], -1.3) / np.power(0.5, 2.3-1.3)

# Cumulative primary mass distribution function
cumfM1 = np.cumsum(fM1)-fM1[0]
Expand Down
Loading