Skip to content

Commit

Permalink
fix multiple bsqi
Browse files Browse the repository at this point in the history
  • Loading branch information
SheinaG committed Mar 29, 2023
1 parent b90e45d commit a729eb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pecg/Preprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def bsqi(self, peaks: np.array = np.array([]), test_peaks: np.array = np.array([
else:
testqrs = test_peaks

bsqi[i] = self.__calculate_bsqi(refqrs[refqrs[:, i] > 0, i], testqrs[testqrs[:, i] > 0, i], fs)
bsqi[i] = self.__calculate_bsqi(refqrs[refqrs > 0], testqrs[testqrs > 0], fs)
elif len(np.shape(signal)) == 1:
fp = FiducialPoints(signal, fs)
if not peaks.any():
Expand Down

0 comments on commit a729eb5

Please sign in to comment.