Commit 9f04bbcc authored by Benjamin Jakimow's avatar Benjamin Jakimow
Browse files
parent 5b1cc803
......@@ -103,7 +103,7 @@ class TestMain(EOTSVTestCase):
from eotimeseriesviewer.main import EOTimeSeriesViewer
TSV = EOTimeSeriesViewer()
TSV.createMapView('True Color')
#TSV.createMapView('Near Infrared')
TSV.loadExampleTimeSeries()
while QgsApplication.taskManager().countActiveTasks() > 0 or len(TSV.timeSeries().mTasks) > 0:
QCoreApplication.processEvents()
......
......@@ -101,7 +101,7 @@ class TestTimeSeries(EOTSVTestCase):
overlapped = []
def onOverlapp(overlapp:dict):
def onOverlapp(overlapp: dict):
for tss, is_overlapp in overlapp.items():
self.assertIsInstance(tss, str)
self.assertTrue(is_overlapp in [True, False, None])
......@@ -135,6 +135,23 @@ class TestTimeSeries(EOTSVTestCase):
s = ""
def test_find_overlap_memory_leak(self):
from eotimeseriesviewer.main import EOTimeSeriesViewer
import random
EOTSV = EOTimeSeriesViewer()
EOTSV.loadExampleTimeSeries(loadAsync=False)
EOTSV.ui.show()
TS: EOTSV.timeSeries()
ext:SpatialExtent = TS.maxSpatialExtent()
center: SpatialPoint = ext.spatialCenter()
self.showGui(EOTSV.ui)
def test_TimeSeriesDate(self):
file = example.Images.Img_2014_03_20_LC82270652014079LGN00_BOA
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment