File "C:/Users/Oem/Desktop/AnalizaEKG/trunk/database_creator/bad_signal_db.py", line 13, in prepare_sig_wfdb
wfdb.plotrec(ecg, annotation=annotation)
File "C:\Anaconda3\envs\py35\lib\site-packages\wfdb\plot\plots.py", line 66, in plotrec
ax.plot(tann, record.p_signals[annotation.annsamp, ch], 'r+')
IndexError: index 45718 is out of bounds for axis 0 with size 21954
You can substract the offset, writing
annotation.annsamp -= 45608
before plotting.
But maybe this could be resolved somehow as a package feature, function argument?
Code:
You can substract the offset, writing
annotation.annsamp -= 45608
before plotting.But maybe this could be resolved somehow as a package feature, function argument?