Commit 1acf9ad4 authored by Eric Pellegrini's avatar Eric Pellegrini
Browse files

the attributes of a dataset are now displayed

parent 5cf33e00
......@@ -152,6 +152,8 @@ class HDFViewer(widgets.Accordion):
datasetInfo.append("<i>Reduced dimension: %s</i>" %
str(tuple([s for s in shape if s != 1])))
datasetInfo.append("<i>Type: %s</i>" % value.dtype.name)
for item in self._hdf[self._startPath].attrs.items():
datasetInfo.append("<i>%s: %s</i>" % item)
datasetInfo = "<br>".join(datasetInfo)
vbox = widgets.VBox()
vbox.children = [widgets.HTML(datasetInfo), MplOutput()]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment