Skip to content

Commit

Permalink
update description of khodadad2018 to reflect implementation of cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
danibene authored Jan 18, 2024
1 parent 7abb936 commit e74b5f8
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions neurokit2/rsp/rsp_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,14 +106,7 @@ def rsp_methods(
report_info["text_cleaning"] = f"The raw signal, sampled at {sampling_rate} Hz,"
if method_cleaning in ["khodadad", "khodadad2018"]:
report_info["text_cleaning"] += (
" linear detrending followed by a fifth order 2Hz low-pass IIR Butterworth filter; "
+ "following Khoadadad et al., 2018."
)

refs.append(
"""Khodadad, D., Nordebo, S., Müller, B., Waldmann, A., Yerworth, R., Becher, T.,... & Bayford, R. (2018).
Optimized breath detection algorithm in electrical impedance tomography.
Physiological measurement, 39(9), 094001."""
" was preprocessed using a second order 0.05-3 Hz bandpass Butterworth filter."
)
elif method_cleaning in ["hampel", "power", "power2020"]:
report_info["text_cleaning"] += (
Expand All @@ -136,10 +129,10 @@ def rsp_methods(
elif method_cleaning in ["none"]:
report_info[
"text_cleaning"
] += "was directly used for peak detection without preprocessing."
] += " was directly used for peak detection without preprocessing."
else:
# just in case more methods are added
report_info["text_cleaning"] += f"was cleaned following the {method} method."
report_info["text_cleaning"] += f" was cleaned following the {method} method."

# 2. Peaks
# ----------
Expand Down

0 comments on commit e74b5f8

Please sign in to comment.