We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 964fade commit 3019f1aCopy full SHA for 3019f1a
wfdb/readwrite/records.py
@@ -216,18 +216,18 @@ def checkfieldtype(self, field, ch=None):
216
217
# Comments field. List. Elements cannot be None
218
elif field == 'comments':
219
- checkitemtype(item, field, [str], 'all')
+ checkitemtype(item, field, (str), 'all')
220
221
# Signals field.
222
elif field in ['p_signals','d_signals']:
223
- checkitemtype(item, field, [np.ndarray])
+ checkitemtype(item, field, (np.ndarray))
224
225
elif field in ['e_p_signals', 'e_d_signals']:
226
- checkitemtype(item, field, [np.ndarray], 'all')
+ checkitemtype(item, field, (np.ndarray), 'all')
227
228
# Segments field. List. Elements may be None.
229
elif field == 'segments':
230
- checkitemtype(item, field, [Record], 'none')
+ checkitemtype(item, field, (Record), 'none')
231
232
# Ensure that input read parameters are valid for the record
233
def checkreadinputs(self, sampfrom, sampto, channels, physical, m2s, smoothframes, returnres):
0 commit comments