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.
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
durationseconds, 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
timesOximeter assigns these without annotating them, so their type cannot be inferred through a subclass.
diffpeaksinstant_rrrecording