culebra.tools.abc.scripts.BatchResultsAnalyzer class

class BatchResultsAnalyzer(args: list[str] | None = None)

Bases: Script

Construct the analyzer.

Define the command-line arguments.

Parameters:

args (list[str] | None) – Sequence of command-line arguments to parse. If None (default), arguments are read from sys.argv. This parameter is mainly intended for testing, allowing command-line arguments to be supplied programmatically.

Static methods

static BatchResultsAnalyzer.load(filename: str) → Base

Load a serialized object from a file.

Parameters:

filename (str) – The file name.

Returns:

The loaded object

Raises:

Methods

BatchResultsAnalyzer.dump(filename: str) → None

Serialize this object and save it to a file.

Parameters:

filename (str) – The file name.

Raises:
BatchResultsAnalyzer.parse_args() → None

Parse and validate command-line arguments.

The first argument is expected to be an analysis method, while the remaining arguments provide a list of folders with batch results.

Raises:

SystemExit – If the command-line arguments are invalid or --help is requested.

abstract BatchResultsAnalyzer.process() → None

Execute the main processing logic of the script.

Private methods

BatchResultsAnalyzer._get_repr_properties() → dict[str, object]

Return the subset of properties used for __repr__.

Filters and evaluates all class-level @property attributes, returning only those intended for representation purposes. Private properties (names starting with _) are excluded.

Returns:

Mapping of property names to their corresponding values.

Return type:

dict[str, object]