diff options
author | Arun Isaac | 2025-07-25 15:02:48 +0100 |
---|---|---|
committer | Arun Isaac | 2025-08-01 12:58:45 +0100 |
commit | e1fe21d1ef6cfed9498e810e0a19d61f1957ce1d (patch) | |
tree | 2cc071aeff4957fed0ee2d9bf61101c7384c4876 | |
parent | 92b69996f378f320579ca84915640aed6729f362 (diff) | |
download | pyhegp-e1fe21d1ef6cfed9498e810e0a19d61f1957ce1d.tar.gz pyhegp-e1fe21d1ef6cfed9498e810e0a19d61f1957ce1d.tar.lz pyhegp-e1fe21d1ef6cfed9498e810e0a19d61f1957ce1d.zip |
Write genotype matrix with increased precision.
* pyhegp/serialization.py (write_genotype): Write with format %.8g.
-rw-r--r-- | pyhegp/serialization.py | 2 |
1 files changed, 1 insertions, 1 deletions
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") |