From 49fee96fa5163d0afa36dcb9c90a6f5390100e2c Mon Sep 17 00:00:00 2001 From: Clara Rehmann Date: Thu, 23 Jan 2025 11:25:17 -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 5d58d6709..c27e4650a 100644 --- a/stdpopsim/qc/MusMus.py +++ b/stdpopsim/qc/MusMus.py @@ -319,7 +319,10 @@ def QC_GammaB21(): description=id, long_description=id, mutation_types=[neutral, negative], - proportions=[1 - prop_nonsynonymous, prop_nonsynonymous], + proportions=[ + np.around(1 - prop_nonsynonymous, 3), + np.around(prop_nonsynonymous, 3), + ], )