Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
EO Time Series Viewer
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Benjamin Jakimow
EO Time Series Viewer
Commits
e51f71bb
Commit
e51f71bb
authored
8 years ago
by
benjamin.jakimow@geo.hu-berlin.de
Browse files
Options
Downloads
Patches
Plain Diff
refactoring, cleanup
parent
b2fb46b3
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
timeseriesviewer/tests.py
+1
-33
1 addition, 33 deletions
timeseriesviewer/tests.py
with
1 addition
and
33 deletions
timeseriesviewer/tests.py
+
1
−
33
View file @
e51f71bb
...
@@ -9,38 +9,6 @@ from PyQt4.QtGui import *
...
@@ -9,38 +9,6 @@ from PyQt4.QtGui import *
from
PyQt4.QtCore
import
*
from
PyQt4.QtCore
import
*
class
PictureTest
(
QMainWindow
):
def
__init__
(
self
,
parent
=
None
,
qImage
=
None
):
super
(
PictureTest
,
self
).
__init__
(
parent
)
self
.
setWindowTitle
(
"
Show Image with pyqt
"
)
self
.
imageLabel
=
QLabel
()
self
.
imageLabel
.
setSizePolicy
(
QSizePolicy
.
Ignored
,
QSizePolicy
.
Ignored
)
self
.
setCentralWidget
(
self
.
imageLabel
)
self
.
cv_img
=
None
if
qImage
:
self
.
addImage
(
qImage
)
def
addImage
(
self
,
qImage
):
pxmap
=
QPixmap
.
fromImage
(
qImage
)
self
.
addPixmap
(
pxmap
)
def
addPixmap
(
self
,
pixmap
):
pxmap
=
pixmap
.
scaled
(
self
.
imageLabel
.
size
(),
Qt
.
KeepAspectRatio
)
self
.
imageLabel
.
setPixmap
(
pxmap
)
self
.
imageLabel
.
adjustSize
()
self
.
imageLabel
.
update
()
def
addNumpy
(
self
,
data
):
img
=
Array2Image
(
data
)
self
.
addImage
(
img
)
#self.resize(img.width(), img.height())
def
test_gui
():
def
test_gui
():
from
timeseriesviewer.main
import
TimeSeriesViewer
from
timeseriesviewer.main
import
TimeSeriesViewer
...
@@ -48,7 +16,7 @@ def test_gui():
...
@@ -48,7 +16,7 @@ def test_gui():
S
=
TimeSeriesViewer
(
None
)
S
=
TimeSeriesViewer
(
None
)
S
.
run
()
S
.
run
()
S
.
ua_
loadT
SFile
(
path
=
PATH_EXAMPLE_TIMESERIES
,
n_max
=
10
)
S
.
loadT
imeSeries
(
path
=
PATH_EXAMPLE_TIMESERIES
,
n_max
=
10
)
pass
pass
def
test_component
():
def
test_component
():
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment