embodied-computation-group / systole

Systole: A python package for cardiac signal synchrony and analysis
https://embodied-computation-group.github.io/systole/#
GNU General Public License v3.0
81 stars 31 forks source link

I want to use this package with emotibit. #47

Closed npdrbong closed 1 year ago

npdrbong commented 1 year ago

Hello, thank you for make this wonderful package for cardioception researches.

In our laboratory, we have emotibit device and want to adjust this package with emotibit device.

For this, what procedure or classes need to be update?

Thank you for reading!

LegrandNico commented 1 year ago

Hi @npdrbong , thank you for reaching out,

So it depends on whether you want to record or analyse the PPG signal.

If you're going to analyse it you can pass your signal as Numpy/Pandas time series to any function in the package.

If you want to read the PPG signal from your device you probably want to write a new class similar to Oximeter that will read new packets as they come in, see especially this part. Nonin pulse oximeter interface via USB, so we use PySerial here, but this is maybe different for your device.

If you have something working following that template this is something that can be contributed to the recording module, the library is intended to work with different devices but I only have access to a limited range of models :blush:.

npdrbong commented 1 year ago

Thanks a lot!