Skip to content

Commit 3019f1a

Browse files
committed
fix checkitemtype calls
1 parent 964fade commit 3019f1a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

wfdb/readwrite/records.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,18 +216,18 @@ def checkfieldtype(self, field, ch=None):
216216

217217
# Comments field. List. Elements cannot be None
218218
elif field == 'comments':
219-
checkitemtype(item, field, [str], 'all')
219+
checkitemtype(item, field, (str), 'all')
220220

221221
# Signals field.
222222
elif field in ['p_signals','d_signals']:
223-
checkitemtype(item, field, [np.ndarray])
223+
checkitemtype(item, field, (np.ndarray))
224224

225225
elif field in ['e_p_signals', 'e_d_signals']:
226-
checkitemtype(item, field, [np.ndarray], 'all')
226+
checkitemtype(item, field, (np.ndarray), 'all')
227227

228228
# Segments field. List. Elements may be None.
229229
elif field == 'segments':
230-
checkitemtype(item, field, [Record], 'none')
230+
checkitemtype(item, field, (Record), 'none')
231231

232232
# Ensure that input read parameters are valid for the record
233233
def checkreadinputs(self, sampfrom, sampto, channels, physical, m2s, smoothframes, returnres):

0 commit comments

Comments
 (0)