Skip to content

Commit

Permalink
Fix: Indent code to ensure 'j' is within for-loop in GQRS algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
Filippo Pruzzi authored and tompollard committed Jul 9, 2024
1 parent 634c6a1 commit a27336c
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions wfdb/processing/qrs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1230,20 +1230,20 @@ def sm(self, at_t):
smtpj = self.at(smt + j)
smtlj = self.at(smt - j)
v += int(smtpj + smtlj)
self.smv_put(
smt,
(v << 1)
+ self.at(smt + j + 1)
+ self.at(smt - j - 1)
- self.adc_zero * (smdt << 2),
)

self.SIG_SMOOTH.append(
(v << 1)
+ self.at(smt + j + 1)
+ self.at(smt - j - 1)
- self.adc_zero * (smdt << 2)
)
self.smv_put(
smt,
(v << 1)
+ self.at(smt + j + 1)
+ self.at(smt - j - 1)
- self.adc_zero * (smdt << 2),
)

self.SIG_SMOOTH.append(
(v << 1)
+ self.at(smt + j + 1)
+ self.at(smt - j - 1)
- self.adc_zero * (smdt << 2)
)
self.c.smt = smt

return self.smv_at(at_t)
Expand Down

0 comments on commit a27336c

Please sign in to comment.