move all outputs to seperate directory

This commit is contained in:
Sakimori 2025-07-18 17:02:46 -04:00
parent 65123e14c0
commit ba684e4c6d
No known key found for this signature in database

View file

@ -1,7 +1,7 @@
#! /minish/keh00032/.conda/envs/keh00032/bin/python
import logging
from os import path
from os import path, chdir, getcwd, makedirs
from argparse import ArgumentDefaultsHelpFormatter, ArgumentParser
from typing import Union
@ -142,6 +142,12 @@ if __name__ == "__main__":
parser.set_defaults(file=None)
values = parser.parse_args()
#set working directory to ignored directory
outdir = path.join(getcwd(),"out","")
if not os.path.isdir(outdir):
os.makedirs(outdir)
chdir(outdir)
if values.file is not None: #single file takes priority
logging.info(f"Running with file {values.file}")
addBurst(values)