From 6d17aed39fd4b95c6934ddd5e51a9fc01a0aff7a Mon Sep 17 00:00:00 2001 From: Ray Osborn Date: Fri, 3 Jul 2015 20:04:05 -0500 Subject: [PATCH] Make the plot_shape property a tuple In all other contexts, shapes are tuples. This returned a list. --- src/nexusformat/nexus/tree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nexusformat/nexus/tree.py b/src/nexusformat/nexus/tree.py index e8363ed..4d252ac 100644 --- a/src/nexusformat/nexus/tree.py +++ b/src/nexusformat/nexus/tree.py @@ -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):