Skip to content
Permalink
Browse files

Fix some remaining issues

  • Loading branch information
m-kuhn committed May 5, 2020
1 parent 0afe134 commit 2dafee528bfb75917ac1d0a58556d2cb76f7ac4a
Showing with 3 additions and 3 deletions.
  1. +1 −1 python/plugins/processing/tests/OtbAlgorithmsTest.py
  2. +2 −2 scripts/parse_dash_results.py
@@ -43,7 +43,7 @@
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
@@ -158,7 +158,7 @@ def parse_url(self, url):

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 @@ def create_mask(self, control_image, rendered_image, mask_image, overload=1):

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]))

0 comments on commit 2dafee5

Please sign in to comment.
You can’t perform that action at this time.