Skip to content

Commit fc948a6

Browse files
author
sprenger
committed
avoid listification of strings for labels
1 parent 975679d commit fc948a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nixio/data_array.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def append_set_dimension(self, labels=None):
9191
index = len(self.dimensions) + 1
9292
setdim = SetDimension.create_new(self, index)
9393
if labels is not None:
94-
if not isinstance(labels, list):
94+
if not isinstance(labels, (list, str)):
9595
labels = list(labels)
9696
setdim.labels = labels
9797
if self.file.auto_update_timestamps:

0 commit comments

Comments
 (0)