Mercurial > repos > bimib > cobraxy
comparison COBRAxy/flux_simulation.py @ 157:d02c0b55a47b draft
Uploaded
| author | francesco_lapi |
|---|---|
| date | Tue, 12 Nov 2024 14:13:34 +0000 |
| parents | ebd2065dbdc2 |
| children | 30acaa01df61 |
comparison
equal
deleted
inserted
replaced
| 156:ebd2065dbdc2 | 157:d02c0b55a47b |
|---|---|
| 379 | 379 |
| 380 num_processors = cpu_count() | 380 num_processors = cpu_count() |
| 381 | 381 |
| 382 global ARGS | 382 global ARGS |
| 383 ARGS = process_args(args) | 383 ARGS = process_args(args) |
| 384 | |
| 385 if not os.path.exists(ARGS.output_path): | |
| 386 os.makedirs(ARGS.output_path) | |
| 387 | 384 |
| 388 | 385 |
| 389 model_type :utils.Model = ARGS.model_selector | 386 model_type :utils.Model = ARGS.model_selector |
| 390 if model_type is utils.Model.Custom: | 387 if model_type is utils.Model.Custom: |
| 391 model = model_type.getCOBRAmodel(customPath = utils.FilePath.fromStrPath(ARGS.model), customExtension = utils.FilePath.fromStrPath(ARGS.model_name).ext) | 388 model = model_type.getCOBRAmodel(customPath = utils.FilePath.fromStrPath(ARGS.model), customExtension = utils.FilePath.fromStrPath(ARGS.model_name).ext) |
