Compare commits
2 commits
160a37b8cb
...
ba684e4c6d
Author | SHA1 | Date | |
---|---|---|---|
![]() |
ba684e4c6d | ||
![]() |
65123e14c0 |
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
./out/*
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue