changeset 257:ed9b20102a20 draft

Uploaded
author luca_milaz
date Sun, 04 Aug 2024 14:42:16 +0000
parents 4058344a661f
children d09b1cbc56d1
files marea_2/flux_to_map.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/marea_2/flux_to_map.py	Sun Aug 04 14:23:21 2024 +0000
+++ b/marea_2/flux_to_map.py	Sun Aug 04 14:42:16 2024 +0000
@@ -12,6 +12,7 @@
 import utils.general_utils as utils
 from PIL import Image
 import os
+import copy
 import argparse
 import pyvips
 from typing import Tuple, Union, Optional, List, Dict
@@ -827,8 +828,8 @@
 
 def computeEnrichmentMedoids(metabMap :ET.ElementTree, class_pat :Dict[str, List[List[float]]], ids :List[str]) -> None:
 
-    metabMap_mean = metabMap.copy()
-    metabMap_median = metabMap.copy()
+    metabMap_mean = copy.deepcopy(metabMap)
+    metabMap_median = copy.deepcopy(metabMap)
 
     #class_pat 462 * cellule
     utils.logWarning(