session

Allows to interact with the storage of the experiment.

Classes

ExperimentSession(*args, **kwargs)

Provides a transactional connection to the storage of the experiment.

StorageManager(*args, **kwargs)

Used to create a new experiment sessions.

Sequence(path, session)

Represent a sequence in the experiment session.

State(*values)

Indicate the state of a sequence.

Shot(sequence, index, session[, data_cache])

Represents a shot inside a sequence.

ExperimentSessionMaker

PathHierarchy(*args, **kwargs)

A file-system-like object that exists inside a session.

PureSequencePath(path)

Represent a path in the sequence hierarchy.

SequenceCollection(*args, **kwargs)

A collection of sequences inside a session.

DeviceConfigurationCollection()

A collection of device configurations inside a session.

AsyncExperimentSession(*args, **kwargs)

Asynchronous version of ExperimentSession.

TracebackSummary(exc_type, exc_msg, notes, ...)

Represents a summary of an exception and its traceback.

Exceptions

InvalidPathFormatError

Raised when a path has an invalid format.

PathIsSequenceError

Raised when a path is expected to be a sequence, but it is not.

PathIsNotSequenceError

Raised when a path is expected to not be a sequence, but it is.

DataNotFoundError

Raised when data is not found in a shot.

SequenceStateError

Raised when an invalid sequence state is encountered.

InvalidStateTransitionError

Raised when an invalid state transition is attempted.

SequenceNotEditableError

Raised when trying to edit a sequence that is not in the draft state.

ShotNotFoundError

Raised when a shot is not found in a sequence.

PathError

Base class for all path errors.

PathNotFoundError

Raised when a path is not found in the session.

PathIsRootError

Raised when an invalid operation is performed on the root path.

PathHasChildrenError

Raised when an invalid operation is performed on a path that has children.

SequenceNotCrashedError

Raised when trying to read the exceptions of a sequence that is not crashed.

SequenceNotLaunchedError

Raised when accessing information only available after launching a sequence.

Modules

sql

Provides an implementation of experiment sessions using SQL databases.

copy

Contains utility functions for copying data between sessions.