NeuroKit: EMG fail to process a specific signal (KeyError)
Hello, I’m currently using your library for my project.
I’m trying to use the emg module to procees a signal but i get a weird error when i call the emg_process fuction.
here is the repro code:
import numpy as np
import neurokit2 as nk
data_dumped = np.loadtxt(r'signal_failed.csv')
print('signal size : {}'.format(len(data_dumped))) # print: signal size: 3500
signals_emg, info_emg = nk.emg_process(data_dumped, 700)
I get the following error:
KeyError: '[3500] not in index'
when I feed a signal whose size is 3500 (I’ve attached the signal that repro the bug to this issue: signal_failed.csv).
Is there a bug in the library? Or am I missing something when using it?
Thank you for your feedbacks. Fabien.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 15 (7 by maintainers)
Hello,
Thanks it fixes the issue