Mercurial > repos > bimib > cobraxy
comparison COBRAxy/flux_simulation.py @ 156:ebd2065dbdc2 draft
Uploaded
author | francesco_lapi |
---|---|
date | Tue, 12 Nov 2024 14:08:53 +0000 |
parents | 3fca9b568faf |
children | d02c0b55a47b |
comparison
equal
deleted
inserted
replaced
155:3ad3fb730b87 | 156:ebd2065dbdc2 |
---|---|
374 Initializes everything and sets the program in motion based on the fronted input arguments. | 374 Initializes everything and sets the program in motion based on the fronted input arguments. |
375 | 375 |
376 Returns: | 376 Returns: |
377 None | 377 None |
378 """ | 378 """ |
379 if not os.path.exists('flux_simulation/'): | |
380 os.makedirs('flux_simulation/') | |
381 | 379 |
382 num_processors = cpu_count() | 380 num_processors = cpu_count() |
383 | 381 |
384 global ARGS | 382 global ARGS |
385 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) | |
386 | 387 |
387 | 388 |
388 model_type :utils.Model = ARGS.model_selector | 389 model_type :utils.Model = ARGS.model_selector |
389 if model_type is utils.Model.Custom: | 390 if model_type is utils.Model.Custom: |
390 model = model_type.getCOBRAmodel(customPath = utils.FilePath.fromStrPath(ARGS.model), customExtension = utils.FilePath.fromStrPath(ARGS.model_name).ext) | 391 model = model_type.getCOBRAmodel(customPath = utils.FilePath.fromStrPath(ARGS.model), customExtension = utils.FilePath.fromStrPath(ARGS.model_name).ext) |