Commit 3aa233dd authored by Cresson Remi's avatar Cresson Remi
Browse files

Merge branch '22-pyotb-1-4-1-regression' into 'develop'

FIX: change Input to pyotb_app as input of Output

Closes #22

See merge request !44
1 merge request!44FIX: change Input to pyotb_app as input of Output
Pipeline #37582 failed with stages
in 5 minutes and 39 seconds
Showing with 1 addition and 1 deletion
+1 -1
......@@ -63,7 +63,7 @@ class Source(pyotb.Output):
# Since it can only be called with pyotb apps, we do the following:
# - if the output is a str, (e.g. the original dimap filename), we instantiate a pyotb.Input(),
# - else we use the original output (should be pyotb application)
super().__init__(app=pyotb.Input(out) if isinstance(out, str) else out, output_parameter_key="out")
super().__init__(app=pyotb.Input(out).pyotb_app if isinstance(out, str) else out, output_parameter_key="out")
assert parent is not self, "You cannot assign a new source to its parent instance"
self.parent = parent # parent source (is another Source instance)
self._app_stack = [] # list of otb applications or output to keep trace
......
Supports Markdown
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