Skip to content

Commit 249b712

Browse files
committed
fix type error
1 parent cc8c9e9 commit 249b712

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wfdb/plot/plot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,8 +428,8 @@ def get_wfdb_plot_items(record, annotation, plot_sym):
428428
raise ValueError('The record has no signal to plot')
429429

430430
fs = record.fs
431-
sig_name = record.sig_name
432-
sig_units = record.units
431+
sig_name = [str(s) for s in record.sig_name]
432+
sig_units = [str(s) for s in record.units]
433433
record_name = 'Record: %s' % record.record_name
434434
ylabel = ['/'.join(pair) for pair in zip(sig_name, sig_units)]
435435
else:

0 commit comments

Comments
 (0)