cardioception.devices.ContinuousOximeter#

class cardioception.devices.ContinuousOximeter(*args, **kwargs)[source]#

Oximeter with an O(1) add_paquet, and a clock on every packet.

Attributes
wall_timeslist of float

time.time() when each packet was added. Oximeter.times counts samples (len(self.times) / self.sfreq), so a dropped sample shortens the timeline instead of leaving a hole and the loss cannot be found afterwards. These are what make a gap visible.

__init__(*args, **kwargs)[source]#

Methods

__init__(*args, **kwargs)

add_paquet(value[, window])

One sample, in time that does not depend on how many came before.

read([duration])

Record for duration seconds, keeping what came before.

reset(*args, **kwargs)

Restart the recording, and the cache that describes it.

save(fname)

Write the recording out, without the repairs that corrupt it.

Attributes

times

Oximeter assigns these without annotating them, so their type cannot be inferred through a subclass.

diff

peaks

instant_rr

recording