NeuroKit icon indicating copy to clipboard operation
NeuroKit copied to clipboard

ECG neurokit cleaning method filters powerline at 50 Hz

Open mscheltienne opened this issue 2 years ago • 4 comments

https://github.com/neuropsychology/NeuroKit/blob/d01111b9b82364d28da01c002e6cbfc45d9493d9/neurokit2/ecg/ecg_clean.py#L129

Powerline noise is at 60 Hz in the US. Maybe have the **kwargs passed to the private functions? But that would require some documentation on a per-method basis.. Or maybe just get rid of powerline filtering here and replace with a BP at e.g. 40 or 45 Hz cutoff?

mscheltienne avatar Jan 19 '22 10:01 mscheltienne

mmh I think it's worth adding this argument (as an exposed one) for the cleaning functions since it's something that you would expect to potentially tweak at this stage. And we can pass it to ecg_clean as kwargs from higher level functions like ecg_process?

Thanks a lot for the suggestions, again would you like / have time to make this argument tweakable in ecg_clean in a PR?

DominiqueMakowski avatar Jan 19 '22 14:01 DominiqueMakowski

I could add this to #612; but I don't exactly get what you propose. It does not make sense to me to expose a powerline argument to ecg_clean since it's used only in one of the cleaning methods.

mscheltienne avatar Jan 20 '22 10:01 mscheltienne

This issue has been automatically marked as inactive because it has not had recent activity. It will eventually be closed if no further activity occurs.

stale[bot] avatar Jul 30 '22 17:07 stale[bot]

Up to prevent closure as this was probably not fixed?

mscheltienne avatar Aug 01 '22 11:08 mscheltienne

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] avatar Oct 01 '22 14:10 stale[bot]

Looks like it was fixed as now the kwargs are forwarded https://github.com/neuropsychology/NeuroKit/blob/5cd089e9d82e6f7fb98d2028e69840aee08f8ab3/neurokit2/ecg/ecg_clean.py#L147-L155

mscheltienne avatar Oct 09 '22 07:10 mscheltienne