paths

Generate paths to useful directories.

paths.get_data_dir(work_dir, logger)[source]

Determine the appropriate data directory.

Use either of these, based on the work directory:

  • if the job being run is part of the package test suite (validation tests and tutorials), use the data folder in the installation directory.

  • else (i.e. the job is a user simulation), if the ‘NODA_HOME’ has been defined and a ‘data’ folder is found in the user directory, use it; if not, fall back to the data folder in the installation directory.

paths.is_in_tests_dir(job_dir)[source]

Check if the job directory is part of the package test suite.