# HG changeset patch # User luca_milaz # Date 1758555167 0 # Node ID 05a80f8e057478a4b2994189f1317834c111f404 # Parent 00f2f3437ea3b020eb845b0c513754989ce1cd8a Uploaded diff -r 00f2f3437ea3 -r 05a80f8e0574 COBRAxy/flux_simulation_beta.py --- 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 ===")