piel.base.experimental.measurements.data.core

piel.base.experimental.measurements.data.core#

Functions#

index_measurement_data_collection(→ Any)

Allows indexing and slicing of the MeasurementDataCollection instance or its subclasses.

Module Contents#

index_measurement_data_collection(instance: Any, index: int | slice) Any[source]#

Allows indexing and slicing of the MeasurementDataCollection instance or its subclasses. Returns a new instance of the same class with the indexed subset of the collection, preserving all other attributes.

Parameters:
  • instance – The MeasurementDataCollection instance or subclass instance to index.

  • index – An integer index or a slice object.

Returns:

A new instance of MeasurementDataCollection or its subclass with the indexed collection.