class
LoadReaderA class to read VT Object Map files. These json files could be compressed with Brotli.
Each file is named as <base-name>.<node>.json, where <node> spans the number of MPI ranks that VT is utilizing. The schema of the compatible files is defined in <project-path>/src/IO/schemaValidator.py
Methods
- def _get_n_ranks(self)
- Determine the number of ranks automatically.
- def _populate_rank(self, phase_id: int, rank_id: int) -> typing.Tuple[Model.lbsRank.Rank, dict]
- Populate rank and its communicator in phase using the JSON content.
- def populate_phase(self, phase_id: int) -> typing.List[Model.lbsRank.Rank]
- Populate phase using the JSON content.
Special methods
- def __init__(self, file_prefix: str, logger: logging.Logger, file_suffix: str = 'json', check_schema: bool = True, expected_ranks = None, ranks_per_node: int = 1)
Data
- CommCategory = ...
- SCHEMA_VALIDATOR_CLASS = None