Compare commits

..

2 commits

Author SHA1 Message Date
Sakimori ba684e4c6d
move all outputs to seperate directory 2025-07-18 17:02:46 -04:00
Sakimori 65123e14c0
tell git to ignore out directory 2025-07-18 17:02:22 -04:00
2 changed files with 8 additions and 1 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
./out/*

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)