From 4730b220550d8f1f89c8456f1817af4edf3bcb9b Mon Sep 17 00:00:00 2001 From: Clara Rehmann Date: Thu, 23 Jan 2025 11:13:13 -0800 Subject: [PATCH] sigfig rounding --- stdpopsim/qc/MusMus.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/stdpopsim/qc/MusMus.py b/stdpopsim/qc/MusMus.py index 2519c8dd8..5d58d6709 100644 --- a/stdpopsim/qc/MusMus.py +++ b/stdpopsim/qc/MusMus.py @@ -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)