Skip to content

Commit bc0d87b

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent d1f983f commit bc0d87b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

physioqc/metrics/cardiac.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
from peakdet import operations
88
from scipy.signal import resample, welch
99
from scipy.stats import kurtosis, pearsonr, skew
10-
from .chest_belt import romanosqi
1110

1211
from .. import references
1312
from ..due import due
13+
from .chest_belt import romanosqi
1414
from .utils import butterbpfiltfilt, butterlpfiltfilt, hamming
1515

1616

@@ -280,6 +280,7 @@ def calcplethentropy(
280280

281281
return E_sqi_mean, E_sqi_std, E_waveform
282282

283+
283284
def cardiacsqi(rawresp, debug=False):
284285
"""
285286
Calculate the breath by breath quality of the respiratory signal
@@ -309,7 +310,6 @@ def cardiacsqi(rawresp, debug=False):
309310
minperiod = 0.3
310311
distfrac = 0.75
311312

312-
313313
return romanosqi(
314314
rawresp,
315315
targetfs=targetfs,

physioqc/metrics/chest_belt.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,7 @@ def romanosqi(
200200
rmsnormderiv = (normderiv - einferior) / (esuperior - einferior)
201201
if debug:
202202
plt.plot(rmsnormderiv)
203-
plt.title(
204-
f"Normalized derivative of {label} signal after envelope correction"
205-
)
203+
plt.title(f"Normalized derivative of {label} signal after envelope correction")
206204
plt.show()
207205

208206
# B. Detection of peaks in sliding window
@@ -354,7 +352,9 @@ def plotbreathqualities(breathlist, totaltime=None):
354352
plt.show()
355353

356354

357-
def plotbreathwaveformwithquality(data, breathlist, label="respiratory", plottype="rectangle"):
355+
def plotbreathwaveformwithquality(
356+
data, breathlist, label="respiratory", plottype="rectangle"
357+
):
358358
"""
359359
Make an informational plot of the respiratory waveform with the quantifiability of each detected breath as a
360360
color overlay.

0 commit comments

Comments
 (0)