changeset 128:32bef0ad664a draft

Uploaded
author luca_milaz
date Sun, 21 Jul 2024 20:17:36 +0000
parents b99132184156
children a0cc4dd5fea1
files marea_2/ras_to_bounds.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/marea_2/ras_to_bounds.py	Sun Jul 21 20:13:55 2024 +0000
+++ b/marea_2/ras_to_bounds.py	Sun Jul 21 20:17:36 2024 +0000
@@ -115,7 +115,7 @@
     if(ras is not  None):
         for cellName, ras in ras.iterrows():
             for reaction in rxns_ids:
-                if (reaction in ras.keys() and ras[reaction] != None):
+                if (reaction in ras.keys() and ras[reaction] != None and pd.notna(ras[reaction])):
                     utils.logWarning(ras[reaction], ARGS.out_log)
                     lower_bound=model_new.reactions.get_by_id(reaction).lower_bound
                     upper_bound=model_new.reactions.get_by_id(reaction).upper_bound