Shot

class caqtus.session.Shot(
sequence: Sequence,
index: int,
session: ExperimentSession,
data_cache: dict[DataLabel, Data] = NOTHING,
)

Bases: object

Represents a shot inside a sequence.

property sequence_path: PureSequencePath

The path of the sequence to which this shot belongs.

get_parameters() Mapping[DottedVariableName, TypeAliasForwardRef('Parameter')]

Return the parameters used to run this shot.

get_data() Mapping[DataLabel, TypeAliasForwardRef('Data')]

Return the data of this shot.

This will return all data that was acquired during the shot. If you want to get only a subset of the data, use get_data_by_label() which will avoid querying unnecessary data.

get_data_by_label(label: DataLabel) Data

Return the data of this shot with the given label.

get_data_by_labels(
labels: Set[DataLabel],
) Mapping[DataLabel, TypeAliasForwardRef('Data')]

Return the data of this shot with the given labels.

get_start_time() datetime

Return the time at which this shot started running.

get_end_time() datetime

Return the time at which this shot finished running.