diff --git a/Modules/Wrappers/SWIG/src/otbApplication.i b/Modules/Wrappers/SWIG/src/otbApplication.i index 2f4605cd863ae819927d4c327ccd239d22a026e4..50ab3e24aced3994827c4a508abe1065eaf0d1e2 100644 --- a/Modules/Wrappers/SWIG/src/otbApplication.i +++ b/Modules/Wrappers/SWIG/src/otbApplication.i @@ -594,8 +594,8 @@ class ApplicationProxy(object): return s def SetParameters(self, dict_params): - for key in dict_params: - self.SetParameterValue(key, dict_params[key]) + for param_key, param_value in dict_params.items(): + self.SetParameterValue(param_key, param_value) def SetParameterValue(self, paramKey, value): paramType = self.GetParameterType(paramKey)