Mercurial > repos > bimib > cobraxy
diff COBRAxy/fromCSVtoCOBRA_beta.py @ 455:4e2bc80764b6 draft
Uploaded
author | francesco_lapi |
---|---|
date | Fri, 12 Sep 2025 15:05:54 +0000 |
parents | 3654c08668f1 |
children | a6e45049c1b9 |
line wrap: on
line diff
--- a/COBRAxy/fromCSVtoCOBRA_beta.py Thu Sep 11 21:02:09 2025 +0000 +++ b/COBRAxy/fromCSVtoCOBRA_beta.py Fri Sep 12 15:05:54 2025 +0000 @@ -63,6 +63,7 @@ logging.error('Input file not found: %s', ARGS.input) out_dir = os.path.dirname(os.path.abspath(ARGS.output)) + if out_dir and not os.path.isdir(out_dir): try: os.makedirs(out_dir, exist_ok=True) @@ -70,7 +71,6 @@ except Exception as e: logging.exception('Cannot create output directory: %s', out_dir) - # Build the model from the CSV (NOTE: use ARGS.input here) model = modelUtils.build_cobra_model_from_csv(ARGS.input) # Save model in requested format