Fix some remaining issues

This commit is contained in:
Matthias Kuhn 2020-05-05 23:43:36 +02:00
parent 0afe134076
commit 2dafee528b
2 changed files with 3 additions and 3 deletions

View File

@ -43,7 +43,7 @@ from qgis.testing import start_app, unittest
from processing.core.ProcessingConfig import ProcessingConfig, Setting
from processing.gui.AlgorithmDialog import AlgorithmDialog
from processing.gui.BatchAlgorithmDialog import BatchAlgorithmDialog
from processing.gui.wrappers import WidgetWrapperFactory,
from processing.gui.wrappers import WidgetWrapperFactory
from processing.modeler.ModelerParametersDialog import ModelerParametersDialog
from processing.algs.otb.OtbAlgorithm import OtbAlgorithm
from processing.algs.otb.OtbAlgorithmProvider import OtbAlgorithmProvider

View File

@ -158,7 +158,7 @@ class ResultHandler(QDialog):
images = {}
for img in measurement_img:
m = re.search('Rendered Image (.*?)(\s|$)', img['role'])
m = re.search(r'Rendered Image (.*?)(\s|$)', img['role'])
test_name = m.group(1)
rendered_image = 'displayImage.php?imgid={}'.format(img['imgid'])
images[test_name] = '{}/{}'.format(dash_url, rendered_image)
@ -286,7 +286,7 @@ class ResultHandler(QDialog):
def get_control_image_path(self, test_name):
if os.path.isfile(test_name):
return path
return test_name
# else try and find matching test image
script_folder = os.path.dirname(os.path.realpath(sys.argv[0]))