Commit b841b3fa authored by Narcon Nicolas's avatar Narcon Nicolas
Browse files

FIX: change Input to pyotb_app as input of Output

1 merge request!44FIX: change Input to pyotb_app as input of Output
Pipeline #37581 passed with stages
in 6 minutes and 9 seconds
Showing with 1 addition and 1 deletion
+1 -1
...@@ -63,7 +63,7 @@ class Source(pyotb.Output): ...@@ -63,7 +63,7 @@ class Source(pyotb.Output):
# Since it can only be called with pyotb apps, we do the following: # 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(), # - 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) # - 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" 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.parent = parent # parent source (is another Source instance)
self._app_stack = [] # list of otb applications or output to keep trace 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