Projects/laydi
Projects
/
laydi
Archived
7
0
Fork 0

Fixed navigator after changes in Dataset.

This commit is contained in:
Truls Alexander Tangstad 2006-04-24 11:39:11 +00:00
parent 6356e2ebd6
commit 2bddb22867
1 changed files with 1 additions and 3 deletions

View File

@ -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])