shapepipe.pipeline.run_log
shapepipe.pipeline.run_log¶
RUN LOG HANDLING.
This module defines methods for creating a run log.
- Author
Samuel Farrens <samuel.farrens@cea.fr>
- class RunLog(run_log_file, module_list, current_run)[source]¶
Bases:
object
Run Log Class.
This class manages the run log for ShapePipe.
- Parameters
- get_run(search_string)[source]¶
Get Run.
Get a specific run that matches the input search string.
- Parameters
search_string (str) – Pattern to match to runs
- Returns
The run matching the search string
- Return type
- Raises
RuntimeError – If no runs found that match the search string
RuntimeError – If more than one run is found matches the search string
- get_all(runs, module)[source]¶
Get All.
Get all previous pipeline runs of a given model.
- Parameters
- Raises
RuntimeError – If no previous runs are found
- Returns
All run paths for a given module
- Return type