src.main.main_mine
Classes
|
- class src.main.main_mine.MainMine
- Author:
Alberto M. Esmoris Pena
Class handling the entry point for data mining tasks.
- static main(spec)
Entry point logic for data mining tasks
- Parameters:
spec – Key-word specification
- static extract_input_path(spec, none_path_msg='Mining a point cloud requires an input point cloud. None was given.', invalid_path_msg='Cannot find the input file for datamining.\nGiven path: {path}')
Extract the input path from the key-word specification.
- Parameters:
spec (dict) – The key-word specification.
none_path_msg (str) – The string representing the message to be logged when no input point cloud is given.
invalid_path_msg (str) – The string representing the message to be logged when the given input path is not valid. It supports a “{path}” format field that will be replaced by the invalid path in the message.
- Returns:
Input path as string.
- Return type:
str
- static extract_output_path(spec)
Extract the output path from the key-word specification.
- Parameters:
spec – The key-word specification.
- Returns:
Output path as string.
- Return type:
str