exopy.measurement.container module

Specialised container used to store measurements.

class exopy.measurement.container.MeasurementContainer[source]

Bases: atom.atom.Atom

Generic container for measurements.

measurements

List containing the measurements. This must not be manipulated directly by user code.

changed

Signal used to notify changes to the stored measurements.

add(measurement, index=None)[source]

Add a measurement to the stored ones.

Parameters
  • measurement (Measurement) – Measurement to add.

  • index (int | None) – Index at which to insert the measurement. If None the measurement is appended.

remove(measurements)[source]

Remove a measurement or a list of measurement.

Parameters

measurements (Measurement|list[Measurement]) – Measurement(s) to remove.

move(old, new)[source]

Move a measurement.

Parameters
  • old (int) – Index at which the measurement to move currently is.

  • new_position (int) – Index at which to insert the measurement.