diff COBRAxy/src/flux_simulation.py @ 552:0b3e3678ea95 draft default tip

Uploaded
author francesco_lapi
date Thu, 11 Dec 2025 13:30:36 +0000
parents 4c5fdcefce8e
children
line wrap: on
line diff
--- a/COBRAxy/src/flux_simulation.py	Thu Dec 11 11:17:33 2025 +0000
+++ b/COBRAxy/src/flux_simulation.py	Thu Dec 11 13:30:36 2025 +0000
@@ -120,7 +120,7 @@
 
     parser.add_argument('-idop', '--output_path',
                         type=str,
-                        default='flux_simulation/',
+                        default='flux_simulation',
                         help = 'output path for fluxes')
     
     parser.add_argument('-otm', '--out_mean',
@@ -537,8 +537,8 @@
     global ARGS
     ARGS = process_args(args)
 
-    if not os.path.exists('flux_simulation'):
-        os.makedirs('flux_simulation')
+    if not os.path.exists(ARGS.output_path):
+        os.makedirs(ARGS.output_path)
 
     # --- Read input files and names from the provided file paths ---
     with open(ARGS.input_file, 'r') as f: