Skip to content

Commit

Permalink
Make the plot_shape property a tuple
Browse files Browse the repository at this point in the history
In all other contexts, shapes are tuples. This returned a list.
  • Loading branch information
rayosborn committed Jul 4, 2015
1 parent 83e8371 commit 6d17aed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nexusformat/nexus/tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -2394,7 +2394,7 @@ def plot_shape(self):
_shape = list(self.shape)
while 1 in _shape:
_shape.remove(1)
return _shape
return tuple(_shape)

@property
def plot_rank(self):
Expand Down

0 comments on commit 6d17aed

Please sign in to comment.