# HG changeset patch # User luca_milaz # Date 1721589698 0 # Node ID 902921535134367e7f4ea6c8d5af336ebbd3584d # Parent 5971a04cc59afe48c408528e2e6dd48b32ca212c Uploaded diff -r 5971a04cc59a -r 902921535134 marea_2/ras_to_bounds.py --- 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)