Skip to content

Commit c459429

Browse files
ENH montage: allow str
1 parent 6bd7c07 commit c459429

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

surfer/viz.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2044,7 +2044,9 @@ def save_montage(self, filename, order=['lat', 'ven', 'med'],
20442044
"""
20452045
# find flat list of views and nested list of view indexes
20462046
assert orientation in ['h', 'v']
2047-
if all(isinstance(x, (str, dict)) for x in order):
2047+
if isinstance(order, (str, dict)):
2048+
views = [order]
2049+
elif all(isinstance(x, (str, dict)) for x in order):
20482050
views = order
20492051
else:
20502052
views = []

0 commit comments

Comments
 (0)