We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0615440 commit 1b610c8Copy full SHA for 1b610c8
wfdb/io/_signal.py
@@ -840,8 +840,8 @@ def calc_adc_params(self):
840
minvals = []
841
maxvals = []
842
for ch in self.e_p_signal:
843
- minvals.append(min(x for x in ch if not math.isnan(x)))
844
- maxvals.append(max(x for x in ch if not math.isnan(x)))
+ minvals.append(np.nanmin(ch))
+ maxvals.append(np.nanmax(ch))
845
846
if any(x == math.inf for x in minvals) or any(
847
x == math.inf for x in maxvals
0 commit comments