Skip to content
Snippets Groups Projects
Commit 853b206f authored by Vincent Delbar's avatar Vincent Delbar
Browse files

FIX: regression in __set_param

parent 0770dac0
No related branches found
No related tags found
2 merge requests!108Release 2.0.0,!101Update comments and docstrings (add Raises)
Pipeline #14169 failed
......@@ -1034,12 +1034,9 @@ class App(OTBObject):
f" found in '{key}' list: {inp}"
)
# List of any other types (str, int...)
elif self.is_key_list(key):
self.app.SetParameterValue(key, obj)
else:
raise TypeError(
f"{self.name}: wrong input parameter type ({type(obj)}) for '{key}'"
)
# TODO: use self.is_key_list, but this is not working for ExtractROI param "cl" which is ParameterType_UNKNOWN
self.app.SetParameterValue(key, obj)
def __sync_parameters(self):
"""Save app parameters in _auto_parameters or data dict.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment