changeset 129:dfb6a1dc6dbc draft

Uploaded
author luca_milaz
date Mon, 14 Oct 2024 08:51:39 +0000
parents a78d83753cce
children 03bbbd9af67d
files COBRAxy/ras_to_bounds.py
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/COBRAxy/ras_to_bounds.py	Mon Oct 14 08:50:52 2024 +0000
+++ b/COBRAxy/ras_to_bounds.py	Mon Oct 14 08:51:39 2024 +0000
@@ -192,10 +192,7 @@
         model.reactions.get_by_id(reaction).upper_bound = float(df_FVA.loc[reaction, "maximum"])
 
     if ras is not None:
-        #Parallel(n_jobs=cpu_count())(delayed(process_ras_cell)(cellName, ras_row, model, rxns_ids, output_folder) for cellName, ras_row in ras.iterrows())
-        for cellName, ras_row in ras.iterrows():
-            process_ras_cell(cellName, ras_row, model, rxns_ids, output_folder)
-            break #just one cell for testing
+        Parallel(n_jobs=cpu_count())(delayed(process_ras_cell)(cellName, ras_row, model, rxns_ids, output_folder) for cellName, ras_row in ras.iterrows())
     else:
         model_new = model.copy()
         apply_ras_bounds(model_new, pd.Series([1]*len(rxns_ids), index=rxns_ids))