module
lbsJSONDataFilesMakerUtility to generate a data set supporting shared blocks by using a specification file.
To call this script either call script with - `lbaf-vt-data-files-maker` if lbaf package is installed or - `python src/lbaf/Utils/lbsJSONDataFilesMaker.py`
Script usage examples:
- Generate dataset from specification file
``` lbaf-vt-data-files-maker --spec-file=/home/john/data-maker/dataset1-spec.yaml --data-stem=/home/john/data-maker/dataset1 ```
- Generate dataset from specification file and sample configuration file configured to use the generated data stem
``` lbaf-vt-data-files-maker --spec-file=/home/john/data-maker/dataset1-spec.yaml --data-stem=/home/john/data-maker/dataset1 --config-file=/home/john/data-maker/dataset1-config.yaml ```
- Generate dataset from specification defined interactively in CLI `lbaf-vt-data-files-maker --interactive`
Sample specification: a sample specification can be loaded in the interactive mode and be printed as an example in either YAML or JSON format. Other examples can be found as unit tests configuration files in the the tests/unit/config/phases directory
Classes
- class JSONDataFilesMaker
- Provides generation tools for VT Data using phase specification input. It internally use - the `populate_from_specification` method from the Phase class for building the phase instance - the VTDataWriter to write data files
- class Util
- Utility class with common useful static methods for the maker
- class YamlSpecificationDumper
- Custom dumper to add indent before list items hyphens.
Data
- PROJECT_PATH = '/home/runner/work/LB-analysis-framework/LB-analysis-framework'