Module epiclass.utils.check_dir
Utility script to check a directory and create it if needed.
Intended to be used before launching any main training/prediction scripts to verify that the logging directory is present, and create it if not. This permits proper redirection of stdout and stderr to files in bash to said directory, in the following scripts.
Functions
def create_dirs(dir_path: str | Path)
-
Create recursively needed directories to directory.
def main()
-
main called from command line, edit to change behavior
def parse_arguments() ‑> argparse.Namespace
-
argument parser for command line