# HG changeset patch # User luca_milaz # Date 1722852361 0 # Node ID 3e24934edf1273a432ad88f650b204dbcd1ec4d5 # Parent c500117b79e260393bc5b2fe12a1afa0d511344d Uploaded diff -r c500117b79e2 -r 3e24934edf12 marea_2/flux_to_map.py --- 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