Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Yu HU
hdf-viewer
Commits
1acf9ad4
Commit
1acf9ad4
authored
Feb 26, 2019
by
Eric Pellegrini
Browse files
the attributes of a dataset are now displayed
parent
5cf33e00
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/hdfviewer/widgets/HDFViewer.py
View file @
1acf9ad4
...
...
@@ -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
()]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment