---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-23-75202f32520c> in <module>()
2 adcgain= 0.8 #record.adcgain[0]
3 , adczero= 0 #record.adczero[0]
----> 4 ,threshold=1.0)
/usr/local/lib/python3.4/dist-packages/wfdb/processing/gqrs.py in gqrs_detect(x, frequency, adcgain, adczero, threshold, hr, RRdelta, RRmin, RRmax, QS, QT, RTmin, RTmax, QRSa, QRSamin)
485 thresh=threshold)
486 gqrs = GQRS()
--> 487 annotations = gqrs.detect(x=x, conf=conf, adczero=adczero)
488 return [a.time for a in annotations]
/usr/local/lib/python3.4/dist-packages/wfdb/processing/gqrs.py in detect(self, x, conf, adczero)
148 self.state = "RUNNING"
149 self.t = t0 - self.c.dt4
--> 150 self.gqrs(t0, self.tf)
151
152 return self.annotations
/usr/local/lib/python3.4/dist-packages/wfdb/processing/gqrs.py in gqrs(self, from_sample, to_sample)
333 if self.countdown < 0:
334 if self.sample_valid:
--> 335 self.qf()
336 else:
337 self.countdown = int(time_to_sample_number(1, self.c.freq))
/usr/local/lib/python3.4/dist-packages/wfdb/processing/gqrs.py in qf(self)
220
221 # do this first, to ensure that all of the other smoothed values needed below are in the buffer
--> 222 dv2 = self.sm(self.t + self.c.dt4)
223 dv2 -= self.smv_at(self.t - self.c.dt4)
224 dv1 = int(self.smv_at(self.t + self.c.dt) - self.smv_at(self.t - self.c.dt))
/usr/local/lib/python3.4/dist-packages/wfdb/processing/gqrs.py in sm(self, at_t)
206 self.smv_put(smt, tmp)
207 else:
--> 208 v = int(self.at(smt))
209 for j in range(1, smdt):
210 smtpj = self.at(smt + j)
ValueError: cannot convert float NaN to integer