Skip to content

Commit

Permalink
sigfig rounding
Browse files Browse the repository at this point in the history
  • Loading branch information
clararehmann committed Jan 23, 2025
1 parent 2561da6 commit 4730b22
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion stdpopsim/qc/MusMus.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,10 @@ def QC_GammaB21():
distribution_type="g",
# PolyDFE gives two times the selection coefficient on a homozygote,
# so divide mean by two
distribution_args=[gamma_mean / 2, gamma_shape],
distribution_args=[
np.around(gamma_mean / 2, decimals=4),
np.around(gamma_shape, decimals=3),
],
)
tstv = 3.3833
prop_nonsynonymous = 1 / (1 + tstv)
Expand Down

0 comments on commit 4730b22

Please sign in to comment.