Fixed navigator after changes in Dataset.
This commit is contained in:
parent
6356e2ebd6
commit
2bddb22867
|
@ -45,9 +45,7 @@ class NavigatorView (gtk.TreeView):
|
||||||
logger.log('debug', 'Selected datatype was %s. Don\'t know what to do.' % t)
|
logger.log('debug', 'Selected datatype was %s. Don\'t know what to do.' % t)
|
||||||
|
|
||||||
def display_data_info(self, data):
|
def display_data_info(self, data):
|
||||||
dims = []
|
dims = zip(data.get_dim_names(), data.shape)
|
||||||
for name in data.get_dim_names():
|
|
||||||
dims.append((name, data.dims[data._dim_num[name]]))
|
|
||||||
|
|
||||||
dim_text = ", ".join(["%s (%d)" % dim for dim in dims])
|
dim_text = ", ".join(["%s (%d)" % dim for dim in dims])
|
||||||
|
|
||||||
|
|
Reference in New Issue