# HG changeset patch # User luca_milaz # Date 1758554589 0 # Node ID 46901af8df7c0475782c591bc0734e3fc03b0c26 # Parent 5f02f7e4ea9fe7ca71267b2ae5b360ba33e1ca36 Uploaded diff -r 5f02f7e4ea9f -r 46901af8df7c COBRAxy/flux_simulation_beta.py --- a/COBRAxy/flux_simulation_beta.py Mon Sep 22 15:14:47 2025 +0000 +++ b/COBRAxy/flux_simulation_beta.py Mon Sep 22 15:23:09 2025 +0000 @@ -47,9 +47,9 @@ help="upload mode: True for model+bounds, False for complete models") parser.add_argument("-ens", "--sampling_enabled", type=str, - choices=['True', 'False'], + choices=['true', 'false'], required=True, - help="enable sampling: True for sampling, False for no sampling") + help="enable sampling: 'true' for sampling, 'false' for no sampling") parser.add_argument('-ol', '--out_log', help="Output log") @@ -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" and ARGS.n_samples > 0: 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" and ARGS.n_samples > 0: perform_sampling = True print("=== INPUT FILES ===")