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
544ae3d8
Commit
544ae3d8
authored
Feb 15, 2019
by
eric pellegrini
Browse files
removed dead code
added release string as an argument of HDFViewer.info static method
parent
442ad5b5
Changes
1
Show whitespace changes
Inline
Side-by-side
src/hdfviewer/widgets/HDFViewer.py
View file @
544ae3d8
...
...
@@ -136,24 +136,14 @@ class HDFViewer(widgets.Accordion):
# Bind the DataViewer figure to the MplOutput widget for allowing a "clean" output clearing (i.e. release the figure from plt)
output
.
figure
=
self
.
_viewer
.
viewer
.
figure
hbox
=
widgets
.
HBox
()
firstFrame
=
widgets
.
Button
(
description
=
"first frame"
)
previousFrame
=
widgets
.
Button
(
description
=
"previous frame"
)
nextFrame
=
widgets
.
Button
(
description
=
"next frame"
)
lastFrame
=
widgets
.
Button
(
description
=
"last frame"
)
frame
=
widgets
.
IntSlider
(
value
=
5
,
min
=
0
,
max
=
10
)
plotMode
=
widgets
.
Checkbox
(
value
=
False
,
description
=
"xy integration"
)
hbox
.
children
=
[
firstFrame
,
previousFrame
,
frame
,
nextFrame
,
lastFrame
,
plotMode
]
display
(
hbox
)
@
classmethod
def
info
(
self
):
@
staticmethod
def
info
(
release
=
None
):
"""Open the url of the package documentation.
"""
release
=
release
if
release
else
hdfviewer
.
__release__
# This will open the package documentation stored on readthedocs
url
=
os
.
path
.
join
(
"https://hdf-viewer.readthedocs.io/en/{0}"
.
format
(
hdfviewer
.
__
release
__
))
url
=
os
.
path
.
join
(
"https://hdf-viewer.readthedocs.io/en/{0}"
.
format
(
release
))
webbrowser
.
open
(
url
)
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