Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Daniel Scheffler
arosics
Commits
4c034c0a
Commit
4c034c0a
authored
Nov 30, 2018
by
Daniel Scheffler
Browse files
Revised fix.
parent
9d1e8644
Pipeline
#3299
passed with stages
in 3 minutes and 39 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
arosics/CoReg.py
View file @
4c034c0a
...
...
@@ -342,18 +342,17 @@ class COREG(object):
# get input paths
def
get_input_path
(
im
):
if
isinstance
(
im
,
GeoArray
):
if
not
im
.
is_inmem
:
return
im
.
filePath
else
:
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 "
"physical file on disk). Received path_out='%s'."
%
self
.
path_out
)
else
:
return
im
path
=
im
.
filePath
if
isinstance
(
im
,
GeoArray
)
else
im
if
isinstance
(
im
,
GeoArray
)
and
im
.
filePath
is
None
and
self
.
path_out
==
'auto'
:
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 "
"physical file on disk). Received path_out='%s'."
%
self
.
path_out
)
return
path
path_im_ref
=
get_input_path
(
im_ref
)
if
self
.
path_out
else
None
path_im_tgt
=
get_input_path
(
im_tgt
)
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
:
# this also applies to self.path_out='auto'
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment