Skip to content

node

tergite_autocalibration.lib.base.node

Classes:

Name Description
BaseNode

BaseNode

BaseNode(name: str, **node_dictionary)

Bases: ABC

Methods:

Name Description
configure_dataset

The dataset retrieved from the instrument coordinator is

final_operation

To be implemented by the child measurement nodes.

initial_operation

To be implemented by the child measurement nodes.

measure_compiled_schedule

Execute a measurement for a node and save the resulting dataset.

pre_measurement_operation

To be implemented by the child measurement nodes

Attributes:

Name Type Description
dimensions list

array of dimensions used for raw dataset reshaping

dimensions property

dimensions: list

array of dimensions used for raw dataset reshaping

configure_dataset

configure_dataset(raw_ds: Dataset) -> Dataset

The dataset retrieved from the instrument coordinator is too bare-bones. Here the dims, coords and data_vars are configured

final_operation

final_operation()

To be implemented by the child measurement nodes. This is called after ALL the iteration samples of the external samplespace have been executed. e.g. set back the dc_current to 0 in coupler_spectroscopy. See coupler_spectroscopy for examples.

initial_operation

initial_operation()

To be implemented by the child measurement nodes. This is called before the execution of each and every iteration of the samples of the external samplespace. See coupler_spectroscopy for examples.

measure_compiled_schedule

measure_compiled_schedule(compiled_schedule: CompiledSchedule, cluster_status=real, measurement: Tuple[int, int] = (1, 1)) -> Dataset

Execute a measurement for a node and save the resulting dataset.

Parameters:

Name Type Description Default
compiled_schedule CompiledSchedule

The compiled schedule to execute.

required
cluster_status real

The status of the measurement mode.

real
measurement tuple

Tuple of (current_measurement, total_measurements).

(1, 1)

Returns:

Type Description
Dataset

xarray.Dataset: The dataset containing the measurement results.

pre_measurement_operation

pre_measurement_operation()

To be implemented by the child measurement nodes