# HG changeset patch
# User luca_milaz
# Date 1721593056 0
# Node ID 32bef0ad664a19dfc72140bb142d27c3f66bca05
# Parent  b99132184156794b366e724d983b42409274367c
Uploaded

diff -r b99132184156 -r 32bef0ad664a marea_2/ras_to_bounds.py
--- 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