You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am getting type error while using bio_process.
Below is my code.
"i = 1
bio = nk.bio_process(ecg=df_respiban[i][:]['ECG'],rsp=df_respiban[i][:]['RESP'], ecg_quality_model=None, ecg_filter_frequency=[1,35], sampling_rate=100)"
Error is as follows,
~\Anaconda3\lib\site-packages\nolds\measures.py in sampen(data, emb_dim, tolerance, dist, debug_plot, debug_data, plot_file)
762 # successively calculate distances between each pair of template vectors
763 for i in range(len(tVecsM) - 1):
--> 764 dsts = dist(tVecsM[i + 1:], tVecsM[i])
765 if debug_plot:
766 plot_data[-1].extend(dsts)
TypeError: 'str' object is not callable
find below attachment.
the issue is because nolds deprecated passing dist as string to measures.sampen and removed it in 0.5.0.
The issue is located here. Just pass nolds.measures.rowwise_chebyshev instead.
As a quickfix, one may install an old version of nolds: pip install 'nolds<0.5'
I am getting type error while using bio_process.
Below is my code.
"i = 1
bio = nk.bio_process(ecg=df_respiban[i][:]['ECG'],rsp=df_respiban[i][:]['RESP'], ecg_quality_model=None, ecg_filter_frequency=[1,35], sampling_rate=100)"
Error is as follows,
~\Anaconda3\lib\site-packages\nolds\measures.py in sampen(data, emb_dim, tolerance, dist, debug_plot, debug_data, plot_file)
762 # successively calculate distances between each pair of template vectors
763 for i in range(len(tVecsM) - 1):
--> 764 dsts = dist(tVecsM[i + 1:], tVecsM[i])
765 if debug_plot:
766 plot_data[-1].extend(dsts)
TypeError: 'str' object is not callable
find below attachment.
Untitled9.pdf
The text was updated successfully, but these errors were encountered: