shapepipe.pipeline.dependency_handler
shapepipe.pipeline.dependency_handler¶
DEPENDENCY HANDLER.
This module defines a class for handling pipeline dependencies.
- Author
Samuel Farrens <samuel.farrens@cea.fr>
- class DependencyHandler(dependencies=[], executables=[])[source]¶
Bases:
object
Dependency Handler.
This class manages the required Python packages and system executables required to run the pipeline.
- Parameters
- property depend¶
Input Dependency List.
- property execute¶
Input Executable List.
- static _convert_to_float(string)[source]¶
Convert String to Float.
This method converts numerical strings to floats.
- static _get_indices(array, value)[source]¶
Get Indices.
Get indices of array elements equal to input value.
- classmethod _slice_col_val(array, col, value)[source]¶
Slice by Column and Value.
Slice a list of lists by elements in a given column equal to a given value.
- static _check_executable(exe_name)[source]¶
Check if Input is Executable.
This method checks if the input executable exists.
- _split_string(string)[source]¶
Split String.
This method splits the version number from the input module string.
- Parameters
string (str) – Input module string
- Returns
Array of string components
- Return type
- _unique_dependencies()[source]¶
Create Unique Dependencies.
This method creates a unique list of depencies.