Skip to content
Snippets Groups Projects
Commit 33e42b14 authored by benjamin.jakimow@geo.hu-berlin.de's avatar benjamin.jakimow@geo.hu-berlin.de
Browse files

refactoring

parent a9e720f1
No related branches found
No related tags found
No related merge requests found
...@@ -94,7 +94,7 @@ if __name__ == "__main__": ...@@ -94,7 +94,7 @@ if __name__ == "__main__":
cfg = pb_tool.get_config(config=pathCfg) cfg = pb_tool.get_config(config=pathCfg)
if True: if True:
#1. clean an existing directory = the enmapboxplugin folder #1. clean an existing directory = the timeseriesviewer folder
pb_tool.clean_deployment(ask_first=False, config=pathCfg) pb_tool.clean_deployment(ask_first=False, config=pathCfg)
#2. Compile. Basically call pyrcc to create the resources.rc file #2. Compile. Basically call pyrcc to create the resources.rc file
......
...@@ -20,8 +20,9 @@ from __future__ import absolute_import ...@@ -20,8 +20,9 @@ from __future__ import absolute_import
import sys import sys
class run(): class run():
"""
# add site-packages to sys.path as done by enmapboxplugin.py Starts the HUB TimeSeriesViewer
"""
from timeseriesviewer.sandbox import initQgisApplication from timeseriesviewer.sandbox import initQgisApplication
qgsApp = initQgisApplication() qgsApp = initQgisApplication()
......
...@@ -45,10 +45,10 @@ from timeseriesviewer.profilevisualization import SpectralTemporalVisualization ...@@ -45,10 +45,10 @@ from timeseriesviewer.profilevisualization import SpectralTemporalVisualization
#path = os.path.abspath(jp(sys.exec_prefix, '../../bin/pythonw.exe')) path = os.path.abspath(jp(sys.exec_prefix, '../../bin/pythonw.exe'))
#if os.path.exists(path): if os.path.exists(path):
# multiprocessing.set_executable(path) multiprocessing.set_executable(path)
# sys.argv = [ None ] sys.argv = [ None ]
#ensure that required non-standard modules are available #ensure that required non-standard modules are available
......
...@@ -20,8 +20,9 @@ ...@@ -20,8 +20,9 @@
""" """
# noinspection PyPep8Naming # noinspection PyPep8Naming
from __future__ import absolute_import from __future__ import absolute_import
import os, pickle import os, sys, pickle
import sys import multiprocessing as mp
import datetime import datetime
from qgis.gui import * from qgis.gui import *
from qgis.core import * from qgis.core import *
...@@ -29,9 +30,6 @@ from PyQt4.QtCore import * ...@@ -29,9 +30,6 @@ from PyQt4.QtCore import *
import numpy as np import numpy as np
from timeseriesviewer.utils import SpatialPoint, SpatialExtent, geo2px, px2geo from timeseriesviewer.utils import SpatialPoint, SpatialExtent, geo2px, px2geo
from osgeo import gdal, gdal_array, osr from osgeo import gdal, gdal_array, osr
import multiprocessing as mp
#mp.freeze_support()
DEBUG = False DEBUG = False
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment