meeg_utils.BatchResult#

class meeg_utils.BatchResult(records)[source]#

Outcome of process_dataset(): one record per run and stage, and per group.

records#

stage ("preprocessing", "epochs" or "combine"), source (a recording, or a group for "combine"), status ("ok", "skipped" or "failed"), output, error and duration_s.

Type:

list of dict

__init__(records)[source]#

Methods

__init__(records)

outputs(stage)

Files written (or found, when skipped) by a stage.

to_csv(fname)

Write the records as a CSV table.

Attributes

failed

The failed records.

property failed: list[dict[str, Any]]#

The failed records.

outputs(stage)[source]#

Files written (or found, when skipped) by a stage.

Parameters:

stage ({"preprocessing", "epochs", "combine"}) – The stage.

Returns:

The output files.

Return type:

list of str

to_csv(fname)[source]#

Write the records as a CSV table.

Parameters:

fname (str | Path) – Output file.

Returns:

The file written.

Return type:

Path

__repr__()[source]#

Count the records per stage and status.