class
JSONTaskListerA utility class to process JSON files, extract tasks for each rank, and save the results in a YAML file.
Methods
- def _JSONTaskLister__process_files(self)
- Processes the JSON files in the specified directory to extract tasks for each rank.
- def run(self)
- Main entry point for the JSONTaskLister utility. Parses command-line arguments, processes JSON files, and writes the extracted tasks to a YAML file.
Special methods
- def __init__(self, logger: typing.Optional[logging.Logger] = None)
- Initializes an instance of the JSONTaskLister class.
Method documentation
def lbaf. Utils. lbsJSONTaskLister. JSONTaskLister. _JSONTaskLister__process_files(self)
Processes the JSON files in the specified directory to extract tasks for each rank.
Returns: dict: A dictionary where keys are ranks and values are lists of tasks.
def lbaf. Utils. lbsJSONTaskLister. JSONTaskLister. __init__(self,
logger: typing.Optional[logging.Logger] = None)
Initializes an instance of the JSONTaskLister class.
Args: logger (Optional[Logger]): A logger instance for logging messages. If not provided, a default logger is used.