changeset 296:3e24934edf12 draft

Uploaded
author luca_milaz
date Mon, 05 Aug 2024 10:06:01 +0000
parents c500117b79e2
children df022575a39c
files marea_2/flux_to_map.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/marea_2/flux_to_map.py	Mon Aug 05 10:02:24 2024 +0000
+++ b/marea_2/flux_to_map.py	Mon Aug 05 10:06:01 2024 +0000
@@ -925,9 +925,9 @@
         colors_median = {rxn_id: rgb_to_hex(jet_colormap(medians[key][i])) for i, rxn_id in enumerate(ids)}
         colors_mean = {rxn_id: rgb_to_hex(jet_colormap(means[key][i])) for i, rxn_id in enumerate(ids)}
 
-        for rxn_id in ids:
+        for i, rxn_id in enumerate(ids):
             new_rxn_id=""
-            if(medians[key][rxn_id] < 0):
+            if(medians[key][i] < 0):
                 new_rxn_id = "B_" +  rxn_id 
             else:
                 new_rxn_id = "F_" +  rxn_id