From 65ae20d78ee517cc71c6dd555d8e15538aba9f9f Mon Sep 17 00:00:00 2001 From: Rashad Kanavath <rashad.kanavath@c-s.fr> Date: Tue, 31 Mar 2015 10:39:34 +0200 Subject: [PATCH] TEST: do not execute OrthoRectification. use Smoothing application instead Signed-off-by: Rashad Kanavath <rashad.kanavath@c-s.fr> --- .../test/python/PythonNewStyleParametersTest.py | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Modules/Wrappers/SWIG/test/python/PythonNewStyleParametersTest.py b/Modules/Wrappers/SWIG/test/python/PythonNewStyleParametersTest.py index 80540d451c..f724b0c5ec 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() -- GitLab