changeset 473:05a80f8e0574 draft

Uploaded
author luca_milaz
date Mon, 22 Sep 2025 15:32:47 +0000
parents 00f2f3437ea3
children 6a88ae3f936f
files COBRAxy/flux_simulation_beta.py
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/COBRAxy/flux_simulation_beta.py	Mon Sep 22 15:32:28 2025 +0000
+++ b/COBRAxy/flux_simulation_beta.py	Mon Sep 22 15:32:47 2025 +0000
@@ -78,7 +78,7 @@
     parser.add_argument('-th', '--thinning',
                         type=int,
                         default=100,
-                        required=False,
+                        required=True,
                         help='choose thinning')
     
     parser.add_argument('-ns', '--n_samples',
@@ -99,7 +99,7 @@
     parser.add_argument('-opt', '--perc_opt',
                         type=float,
                         default=0.9,
-                        required=False,
+                        required=True,
                         help='choose the fraction of optimality for FVA (0-1)')
     
     parser.add_argument('-ot', '--output_type',
@@ -348,7 +348,7 @@
         List[pd.DataFrame]: A list of DataFrames containing statistics and analysis results.
     """
 
-    if ARGS.sampling_enabled == "true" and ARGS.n_samples > 0:
+    if ARGS.sampling_enabled == "true":
     
         if ARGS.algorithm == 'OPTGP':
             OPTGP_sampler(model_input, cell_name, ARGS.n_samples, ARGS.thinning, ARGS.n_batches, ARGS.seed)
@@ -499,7 +499,7 @@
     ARGS.output_type_analysis = ARGS.output_type_analysis.split(",") if ARGS.output_type_analysis else []
 
     # Determine if sampling should be performed
-    if ARGS.sampling_enabled == "true" and ARGS.n_samples > 0:
+    if ARGS.sampling_enabled == "true":
         perform_sampling = True
 
     print("=== INPUT FILES ===")