From 2a730f6726a78f947a5e9a70f053fc661afdfd4f Mon Sep 17 00:00:00 2001
From: = <=>
Date: Fri, 22 Nov 2024 14:34:53 +0100
Subject: [PATCH] write h5 not append it

---
 src/cyxtrax/io/save_map.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/cyxtrax/io/save_map.py b/src/cyxtrax/io/save_map.py
index 2329034..00d685c 100644
--- a/src/cyxtrax/io/save_map.py
+++ b/src/cyxtrax/io/save_map.py
@@ -17,7 +17,7 @@ def save_atlas(
     save_folder: Path,
 ):
     save_path = save_folder / f"{atlas_name}.h5"
-    file = h5py.File(save_path, "a")
+    file = h5py.File(save_path, "w")
 
     x_px = maps.shape[0]
     y_px = maps.shape[1]
-- 
GitLab