Skip to content

Commit ed8fcb6

Browse files
committed
making type check windows compatible
1 parent 8ff4493 commit ed8fcb6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wfdb/records.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,9 +223,9 @@ def checkfieldtype(self, field, ch=None):
223223
# Ensure that input read parameters are valid for the record
224224
def checkreadinputs(self, sampfrom, sampto, channels):
225225
# Data Type Check
226-
if type(sampfrom) not in _headers.inttypes:
226+
if not hasattr(sampfrom, '__index__'):
227227
sys.exit('sampfrom must be an integer')
228-
if type(sampto) not in _headers.inttypes:
228+
if not hasattr(sampto, '__index__'):
229229
sys.exit('sampto must be an integer')
230230
if type(channels) != list:
231231
sys.exit('channels must be a list of integers')

0 commit comments

Comments
 (0)