src.util.path_utils module
Utility functions for defining directory paths
-
class src.util.path_utils.PathManagerBase(config: NameSpace = None, env: dict = None, unittest: bool = False, new_work_dir: bool = True)[source]
Bases: object
Singleton
holding the root directories for all paths used
by the code.
-
CODE_ROOT: str
-
OBS_DATA_ROOT: str
-
WORK_DIR: str
-
OUTPUT_DIR: str
-
TEMP_DIR_ROOT: str
-
class src.util.path_utils.PodPathManager(pod_name: str, config: NameSpace = None, env: dict = None, unittest: bool = False, new_work_dir: bool = True)[source]
Bases: PathManagerBase
-
WORK_DIR: str
-
OUTPUT_DIR: str
-
TEMP_DIR_ROOT: str
-
CODE_ROOT: str
-
OBS_DATA_ROOT: str
-
POD_CODE_DIR: str
-
POD_WORK_DIR: str
-
POD_OUTPUT_DIR: str
-
POD_OBS_DATA: str
-
class src.util.path_utils.ModelDataPathManager(config: NameSpace, env=None, unittest: bool = False, new_work_dir: bool = False)[source]
Bases: PathManagerBase
-
WORK_DIR: str
-
OUTPUT_DIR: str
-
TEMP_DIR_ROOT: str
-
CODE_ROOT: str
-
OBS_DATA_ROOT: str
-
MODEL_DATA_ROOT: str
-
MODEL_DATA_DIR: dict
-
MODEL_OUTPUT_DIR: dict
-
MODEL_WORK_DIR: dict
-
setup_data_paths(case_list: NameSpace)[source]
-
src.util.path_utils.verify_paths(config, p)[source]