parsac.record module

class parsac.record.Record(conn: Connection | None, run_id: int | None, **fields: Any)

Bases: object

update(**fields: Any)
class parsac.record.Recorder(file: PathLike[Any] | str, read_only: bool = False)

Bases: object

close() None
connect() Connection
get_config(key: str, default: Any = None) Any

Global experiment configuration.

property headers: Sequence[str]

Column headers for the results table.

record(**fields: Any) Record
rows(where: str = '') Iterable[Sequence[Any]]

Iterate over the rows of the results table.

start(config: Mapping[str, Any], required: Mapping[str, Any], optional: Mapping[str, Any]) None
to_ndarray(where: str = '') ndarray

Convert the results table to a numpy array.

to_text(file: PathLike[Any] | str, sep: str = '\t') None

Write the results table to a text file.

Parameters:
  • file – The file to write to.

  • sep – The separator between columns.