From e1fe21d1ef6cfed9498e810e0a19d61f1957ce1d Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Fri, 25 Jul 2025 15:02:48 +0100 Subject: Write genotype matrix with increased precision. * pyhegp/serialization.py (write_genotype): Write with format %.8g. --- pyhegp/serialization.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyhegp/serialization.py b/pyhegp/serialization.py index 657e4ec..4b49041 100644 --- a/pyhegp/serialization.py +++ b/pyhegp/serialization.py @@ -57,4 +57,4 @@ def read_genotype(genotype_file): return np.loadtxt(genotype_file, delimiter=",") def write_genotype(file, genotype): - np.savetxt(file, genotype, delimiter=",", fmt="%f") + np.savetxt(file, genotype, delimiter=",", fmt="%.8g") -- cgit 1.4.1