From 2bddb22867109e489a98886d58e9d6b8d76707df Mon Sep 17 00:00:00 2001 From: tangstad Date: Mon, 24 Apr 2006 11:39:11 +0000 Subject: [PATCH] Fixed navigator after changes in Dataset. --- system/navigator.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/system/navigator.py b/system/navigator.py index 1ac7fe1..8bd3e75 100644 --- a/system/navigator.py +++ b/system/navigator.py @@ -45,9 +45,7 @@ class NavigatorView (gtk.TreeView): logger.log('debug', 'Selected datatype was %s. Don\'t know what to do.' % t) def display_data_info(self, data): - dims = [] - for name in data.get_dim_names(): - dims.append((name, data.dims[data._dim_num[name]])) + dims = zip(data.get_dim_names(), data.shape) dim_text = ", ".join(["%s (%d)" % dim for dim in dims])