changeset 116:902921535134 draft

Uploaded
author luca_milaz
date Sun, 21 Jul 2024 19:21:38 +0000
parents 5971a04cc59a
children 1061a1cbca8c
files marea_2/ras_to_bounds.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/marea_2/ras_to_bounds.py	Sun Jul 21 19:18:46 2024 +0000
+++ b/marea_2/ras_to_bounds.py	Sun Jul 21 19:21:38 2024 +0000
@@ -111,7 +111,7 @@
         model_new.reactions.get_by_id(reaction).lower_bound=float(df_FVA.loc[reaction,"minimum"])
         model_new.reactions.get_by_id(reaction).upper_bound=float(df_FVA.loc[reaction,"maximum"])
     
-    if(ras is not None):
+    if(ras is not None):#iterate over cells
         for reaction in rxns_ids:
             if reaction in ras.keys():
                 lower_bound=model_new.reactions.get_by_id(reaction).lower_bound
@@ -152,6 +152,8 @@
 
     ARGS.output_folder = 'ras_to_bounds/'
 
+    warning(ARGS.input_ras)
+
     boundsPath = utils.FilePath("bounds", ".csv", prefix = ARGS.output_folder)
     mediumPath = utils.FilePath("medium", ".csv", prefix = ARGS.output_folder)