MIT-LCP / physionet

A collection of tools for working with the PhysioNet repository.
http://physionet.org/
MIT License
69 stars 17 forks source link

GainQRSdetect hardcoded to 2000 leading to errors #139

Open amisepa opened 2 years ago

amisepa commented 2 years ago

Hi,

ConvertRawDataToRRIntervals seemed to not process some files and I finally found that it was because of the line 48 that hardcode amplifies the signal by 2000 before the signal is processed by wqrsm_fast where the gain default is 200 (line 80: WFDB_DEFGAIN = 200.0). When I remove the gain of 2000 in ConvertRawDataToRRIntervals, I don't get the error.

Is there a strong reason why I should keep the hardcoding for the gain of 2000 in ConvertRawDataToRRIntervals or is it an error?