8000 Fix _process_labels to accept a single str label · python-control/python-control@bd83e8c · GitHub
[go: up one dir, main page]

Skip to content

Commit bd83e8c

Browse files
Fix _process_labels to accept a single str label
1 parent d744a54 commit bd83e8c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

control/timeresp.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,10 @@ def _process_labels(labels, signal, length):
694694
raise ValueError("Name dictionary for %s is incomplete" % signal)
695695

696696
# Convert labels to a list
697-
labels = list(labels)
697+
if isinstance(labels, str):
698+
labels = [labels]
699+
else:
700+
labels = list(labels)
698701

699702
# Make sure the signal list is the right length and type
700703
if len(labels) != length:

0 commit comments

Comments
 (0)
0