paulvangentcom / heartrate_analysis_python

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

AttributeError: module 'HeartPy' has no attribute 'calc_fd_measures' #101

Closed BCIstorm closed 1 year ago

BCIstorm commented 1 year ago

I'm new to heartpy and successfully got time domain measures with hp.process() function.

Now I would like to do frequency domain analysis. Tried with hp.calc_fd_measures() but got an error: AttributeError: module 'HeartPy' has no attribute 'calc_fd_measures'

However, it exists: image

I'm using heartpy==1.2.7 on Windows 10, Spyder 3.3.6, Python 3.7

How can I do frequency domain analysis?

SahebehDadboud commented 1 year ago

@BCIstorm in hp.process(), if you set your calc_freq to True, you get the frequency domain analysis. you don't need to run it separately. besides that calc_fd_measures is from analysis.py, and not from hp. and analysis.py is one of the packages used inside hp.