diff --git a/Modules/Wrappers/SWIG/test/python/PythonNewStyleParametersTest.py b/Modules/Wrappers/SWIG/test/python/PythonNewStyleParametersTest.py index 80540d451c3d0da9b19edea6447bbcc753c90f69..f724b0c5ec0ef360d951dfe9486b889553f25208 100644 --- a/Modules/Wrappers/SWIG/test/python/PythonNewStyleParametersTest.py +++ b/Modules/Wrappers/SWIG/test/python/PythonNewStyleParametersTest.py @@ -12,6 +12,11 @@ def cm_assert(a,b): app = otb.Registry.CreateApplication('OrthoRectification') +#test GetParameterTypeAsString() method in python. +print app.GetParameterTypeAsString(otb.ParameterType_InputImage) +print app.GetParameterTypeAsString(otb.ParameterType_String) +print app.GetParameterTypeAsString(otb.ParameterType_Empty) + # one test for each parameter type (string, float, int, ...) # # parameter group io.in @@ -110,5 +115,13 @@ cm_assert(app.IsParameterEnabled('outputs.isotropic'), True) app.DisableParameter('outputs.isotropic') cm_assert(False, app.OUTPUTS.ISOTROPIC) +#Do not execute. we need LARGEINPUT. so we tried a small application +#app.Execute() + +app = None -# #app.ExecuteAndWriteOutput() +app = otb.Registry.CreateApplication('Smoothing') +app.IN = argv[1] +app.TYPE='anidif' +app.OUT = argv[2] +app.ExecuteAndWriteOutput()