paulvangentcom / heartrate_analysis_python

Python Heart Rate Analysis Package, for both PPG and ECG signals
MIT License
962 stars 322 forks source link

working_data['peaklist'] is sometimes np.array, sometimes a list #82

Closed meierman1 closed 2 years ago

meierman1 commented 3 years ago

Usually working_data['peaklist'] is returned as a list. However, if there is a peak in the first 150ms of the trace, it is removed in calc_rr(). As a result of this, working_data['peaklist'] is overwritten by an np.array.

See Pull request for solving.