Commit 4c034c0a authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Revised fix.

parent 9d1e8644
Pipeline #3299 passed with stages
in 3 minutes and 39 seconds
...@@ -342,18 +342,17 @@ class COREG(object): ...@@ -342,18 +342,17 @@ class COREG(object):
# get input paths # get input paths
def get_input_path(im): def get_input_path(im):
if isinstance(im, GeoArray): path = im.filePath if isinstance(im, GeoArray) else im
if not im.is_inmem:
return im.filePath if isinstance(im, GeoArray) and im.filePath is None and self.path_out == 'auto':
else: raise ValueError(self.path_out, "The output path must be explicitly set in case the input "
raise ValueError(self.path_out, "The output path must be explicitly set in case the input " "reference or target image is in-memory (without a reference to a "
"reference or target image is in-memory (without a reference to a " "physical file on disk). Received path_out='%s'." % self.path_out)
"physical file on disk). Received path_out='%s'." % self.path_out)
else: return path
return im
path_im_ref = get_input_path(im_ref) if self.path_out else None path_im_ref = get_input_path(im_ref)
path_im_tgt = get_input_path(im_tgt) if self.path_out else None path_im_tgt = get_input_path(im_tgt)
if self.path_out: # this also applies to self.path_out='auto' if self.path_out: # this also applies to self.path_out='auto'
......
Markdown is supported
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