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
We are doing a project and trying to reproduce your results from the original paper associated with this code. When we get to extract_rri in data/nch/dataloader.py, the line:
fails because the upper bound of the resampling filter window (45) is greater than or equal to the nyquist rate (32Hz in this case; FREQ is defined as 64). How did you get this to work or what change do you recommend that would provide consistent results? Thanks.
Relevant stack trace:
File ".../data/nch/dataloader.py", line 55, in extract_rri
filtered, _, _ = st.filter_signal(signal=signal, ftype="FIR", band="bandpass", order=int(0.3 * FREQ),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".../lib/python3.11/site-packages/biosppy/signals/tools.py", line 425, in filter_signal
b, a = get_filter(
^^^^^^^^^^^
File ".../lib/python3.11/site-packages/biosppy/signals/tools.py", line 326, in get_filter
b = ss.firwin(numtaps=order, cutoff=frequency, pass_zero=False, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".../lib/python3.11/site-packages/scipy/_lib/deprecation.py", line 213, in inner_f
return f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
File ".../lib/python3.11/site-packages/scipy/signal/_fir_filter_design.py", line 409, in firwin
raise ValueError("Invalid cutoff frequency: frequencies must be "
ValueError: Invalid cutoff frequency: frequencies must be greater than 0 and less than fs/2.
The text was updated successfully, but these errors were encountered:
We are doing a project and trying to reproduce your results from the original paper associated with this code. When we get to
extract_rri
indata/nch/dataloader.py
, the line:fails because the upper bound of the resampling filter window (45) is greater than or equal to the nyquist rate (32Hz in this case;
FREQ
is defined as 64). How did you get this to work or what change do you recommend that would provide consistent results? Thanks.Relevant stack trace:
The text was updated successfully, but these errors were encountered: