exopy.measurement.container module

Specialised container used to store measures.

class exopy.measurement.container.MeasurementContainer[source]

Bases: atom.atom.Atom

Generic container for measures.

measurements

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

changed

Signal used to notify changes to the stored measures.

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(measures)[source]

Remove a measurement or a list of measurement.

Parameters

measures (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.