Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix _process_labels to accept a single str label
  • Loading branch information
joaoantoniocardoso committed May 27, 2023
commit bd83e8c9060f69d9e87afd861dda4b4bf3223bd7
5 changes: 4 additions & 1 deletion control/timeresp.py
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,10 @@ def _process_labels(labels, signal, length):
raise ValueError("Name dictionary for %s is incomplete" % signal)

# Convert labels to a list
labels = list(labels)
if isinstance(labels, str):
labels = [labels]
else:
labels = list(labels)

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