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
58b69eb8
Commit
58b69eb8
authored
7 years ago
by
benjamin.jakimow@geo.hu-berlin.de
Browse files
Options
Downloads
Patches
Plain Diff
refactoring
parent
f5a53729
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
timeseriesviewer/main.py
+3
-3
3 additions, 3 deletions
timeseriesviewer/main.py
timeseriesviewer/utils.py
+1
-11
1 addition, 11 deletions
timeseriesviewer/utils.py
with
4 additions
and
14 deletions
timeseriesviewer/main.py
+
3
−
3
View file @
58b69eb8
...
...
@@ -456,7 +456,7 @@ class TimeSeriesViewer:
def
loadTimeSeriesDefinition
(
self
,
path
=
None
,
n_max
=
None
):
s
=
getS
ettings
()
s
=
s
ettings
()
defFile
=
s
.
value
(
'
FILE_TS_DEFINITION
'
)
if
defFile
is
not
None
:
defFile
=
os
.
path
.
dirname
(
defFile
)
...
...
@@ -522,7 +522,7 @@ class TimeSeriesViewer:
def
saveTimeSeriesDefinition
(
self
):
s
=
getS
ettings
()
s
=
s
ettings
()
defFile
=
s
.
value
(
'
FILE_TS_DEFINITION
'
)
if
defFile
is
not
None
:
defFile
=
os
.
path
.
dirname
(
defFile
)
...
...
@@ -607,7 +607,7 @@ class TimeSeriesViewer:
def
addTimeSeriesImages
(
self
,
files
=
None
):
if
files
is
None
:
s
=
getS
ettings
()
s
=
s
ettings
()
defDir
=
s
.
value
(
'
DIR_FILESEARCH
'
)
files
=
QFileDialog
.
getOpenFileNames
(
directory
=
defDir
)
...
...
This diff is collapsed.
Click to expand it.
timeseriesviewer/utils.py
+
1
−
11
View file @
58b69eb8
...
...
@@ -328,16 +328,6 @@ def copyRenderer(renderer, targetLayer):
return
False
def
getIface
():
"""
Returns the QGIS Interface or None
:return:
"""
import
qgis.utils
if
qgis
.
utils
is
not
None
and
isinstance
(
qgis
.
utils
.
iface
,
QgisInterface
):
return
qgis
.
utils
.
iface
else
:
return
None
def
getSubLayerEndings
(
files
):
subLayerEndings
=
[]
...
...
@@ -355,7 +345,7 @@ def getSubLayerEndings(files):
return
subLayerEndings
def
getS
ettings
():
def
s
ettings
():
return
QSettings
(
'
HU-Berlin
'
,
'
HUB TimeSeriesViewer
'
)
def
niceNumberString
(
number
):
...
...
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