m3resp.IntervalDataCollection#

class m3resp.IntervalDataCollection(items=<factory>)[source]#

An ordered collection of results with values per interval or breath.

Variables:

items (list[m3resp.data.event_data.IntervalData]) – IntervalData results in insertion order.

Parameters:

items (list[IntervalData])

Methods

add

Add and return the result, keeping each object once in insertion order.

for_modality

Return results whose modality exactly matches the given device name.

for_name

Return results with this exact name, in insertion order.

Attributes

add(interval_data)[source]#

Add and return the result, keeping each object once in insertion order.

Parameters:

interval_data (IntervalData)

Return type:

IntervalData

for_modality(modality)[source]#

Return results whose modality exactly matches the given device name.

Parameters:

modality (str)

Return type:

list[IntervalData]

for_name(name)[source]#

Return results with this exact name, in insertion order.

Parameters:

name (str)

Return type:

list[IntervalData]

items: list[IntervalData]#