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
481d577f
Commit
481d577f
authored
7 years ago
by
benjamin.jakimow@geo.hu-berlin.de
Browse files
Options
Downloads
Patches
Plain Diff
changed test_timeseries.py
parent
0cf03cb4
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/test_timeseries.py
+11
-0
11 additions, 0 deletions
test/test_timeseries.py
with
11 additions
and
0 deletions
test/test_timeseries.py
+
11
−
0
View file @
481d577f
...
@@ -4,10 +4,21 @@
...
@@ -4,10 +4,21 @@
import
os
import
os
import
unittest
import
unittest
import
example
import
example
import
example.Images
from
osgeo
import
gdal
from
osgeo
import
gdal
from
timeseriesviewer
import
file_search
from
timeseriesviewer
import
file_search
from
timeseriesviewer.timeseries
import
TimeSeries
,
SensorInstrument
,
TimeSeriesDatum
from
timeseriesviewer.timeseries
import
TimeSeries
,
SensorInstrument
,
TimeSeriesDatum
class
TestInit
(
unittest
.
TestCase
):
class
TestInit
(
unittest
.
TestCase
):
def
test_timeseriesdatum
(
self
):
file
=
example
.
Images
.
Img_2014_03_20_LC82270652014079LGN00_BOA
tsd
=
TimeSeriesDatum
.
createFromPath
(
file
)
self
.
assertIsInstance
(
tsd
,
TimeSeriesDatum
)
self
.
assertEqual
(
tsd
.
nb
,
6
)
def
test_timeseries
(
self
):
def
test_timeseries
(
self
):
files
=
file_search
(
os
.
path
.
dirname
(
example
.
__file__
),
'
*.tiff
'
,
recursive
=
True
)
files
=
file_search
(
os
.
path
.
dirname
(
example
.
__file__
),
'
*.tiff
'
,
recursive
=
True
)
...
...
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