LION.utils.paths

Where LION’s data and results are: the LION_DATA_PATH and LION_RESULTS_PATH environment variables, read when a path is used.

  • data_path(relative): a path inside LION_DATA_PATH, e.g. data_path("processed/LIDC-IDRI"); an error if it isn’t set.

  • results_path(relative): a path inside LION_RESULTS_PATH (optional: a solver without a save_folder saves there).

Saved parameters write paths inside these folders as calls to these functions (LION.utils.spec), so they point to the same data on any machine. The datasets’ folders are named below (paths.LIDC_IDRI_PROCESSED_DATASET_PATH, …), each read from LION_DATA_PATH when used, as are LION_DATA_PATH and LION_RESULTS_PATH themselves.

Functions

data_path([relative])

A path inside LION_DATA_PATH, e.g. data_path("processed/LIDC-IDRI").

results_path([relative])

A path inside LION_RESULTS_PATH, e.g. results_path("LPD/model").


LION.utils.paths.data_path(relative='')[source]

A path inside LION_DATA_PATH, e.g. data_path("processed/LIDC-IDRI").

LION.utils.paths.results_path(relative='')[source]

A path inside LION_RESULTS_PATH, e.g. results_path("LPD/model").