NeuroKit icon indicating copy to clipboard operation
NeuroKit copied to clipboard

ecg_analyze() bug

Open dommrichmond opened this issue 8 months ago • 6 comments

Creating an ecg signal and using ecg analyze results in an error in Neurokit2 (Version 0.2.6)

ecg = nk.ecg_simulate(duration=60, sampling_rate=100, heart_rate=80)
signals, info = nk.ecg_process(ecg, sampling_rate=100)
epochs = nk.epochs_create(signals,sampling_rate=100, epochs_end=10)
results = nk.ecg_analyze(epochs,sampling_rate=100)

NeuroKitWarning: DFA_alpha2 related indices will not be calculated. The maximum duration of the windows provided for the long-term correlation is smaller than the minimum duration of windows. Refer to the scale argument in nk.fractal_dfa() for more information.

dommrichmond avatar Oct 18 '23 10:10 dommrichmond