Skip to content
Open
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
9 changes: 7 additions & 2 deletions src/cosmic/sample/sampler/independent.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ def get_independent_sampler(
binfrac_model_msort : `str or float`
Same as binfrac_model for M>msort

met : `float`
met : `str or float`
opt for str: "zsun"
Sets the metallicity of the binary population where solar metallicity is zsun

size : `int`
Expand Down Expand Up @@ -298,7 +299,11 @@ def get_independent_sampler(
mass1_singles = np.asarray(mass1_singles)

zsun = kwargs.pop("zsun", 0.02)


#if user sets met to "zsun", this gives it zsun's default value or user-inputed value
if met == "zsun":
met = zsun

rad1 = initconditions.set_reff(mass1_binary, metallicity=met, zsun=zsun)
rad2 = initconditions.set_reff(mass2_binary, metallicity=met, zsun=zsun)

Expand Down