Mercurial > repos > bimib > cobraxy
diff COBRAxy/flux_simulation_beta.py @ 470:46901af8df7c draft
Uploaded
author | luca_milaz |
---|---|
date | Mon, 22 Sep 2025 15:23:09 +0000 |
parents | 5f02f7e4ea9f |
children | 05a80f8e0574 |
line wrap: on
line diff
--- 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 ===")