lbaf.Utils.lbsVTDataExtractor.VTDataExtractor class

Reads VT data and saves chosen phases from it.

Static methods

def _get_extracted_phases(data: dict, phases_to_extract: list) -> dict
Returns just wanted phases from given data and list of phases to extract.
def _process_input_phases(phases_to_extract: list) -> list
Creates a list of integers, based on input phases_to_extract.

Methods

def _get_data_from_file(self, file_path: str) -> dict
Returns data from given file_path.
def _get_files_list(self) -> list
Returns list of files to iterate over and read data from them.
def _initial_checks(self)
Checks if data and directories exists.
def _save_extracted_phases(self, extracted_phases: dict, file_path: str) -> None
Saves extracted data with or without compression.
def main(self)
Execute the data extraction.

Special methods

def __init__(self, input_data_dir: str, output_data_dir: str, phases_to_extract: list, file_prefix: str = 'stats', file_suffix: str = 'json', compressed: bool = True, schema_type: str = 'LBDatafile', check_schema: bool = False, logger: typing.Optional[logging.Logger] = None)