NeuroKit icon indicating copy to clipboard operation
NeuroKit copied to clipboard

Eog features

Open VladimirR46 opened this issue 1 year ago • 12 comments

Good afternoon! When I try to use the eog_features function I get the following error.

TypeError: only size-1 arrays can be converted to Python scalars

eog_cleaned = nk.eog_clean(ica0, sampling_rate=1000, method='neurokit')
peaks = nk.eog_findpeaks(eog_cleaned, sampling_rate=1000)
info = nk.eog_features(eog_cleaned, peaks,sampling_rate=1000)

But if I change sampling_rate to 100, for example, it works.

info = nk.eog_features(eog_cleaned, peaks,sampling_rate=100)

But I have a frequency of 1000 Hz.

eog_cleaned and peaks have the right data type

VladimirR46 avatar Jun 23 '23 15:06 VladimirR46