Commit b43f15b4 authored by Manuel Grizonnet's avatar Manuel Grizonnet

Merge branch 'rfc-12-pywrap-compl' into develop

parents c6007130 b7e2fac8
......@@ -84,3 +84,8 @@ add_test( NAME pyTvNewStyleParameters
${OTB_DATA_ROOT}/Input/poupees.tif
${TEMP}/pyTvNewStyleParametersTest.tif
${OTB_DATA_ROOT}/Input/apTvUtSmoothingTest_OutXML.xml)
add_test( NAME pyTvNewStyleParametersInstanciateAll
COMMAND ${TEST_DRIVER} Execute
${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/PythonNewStyleParametersInstanciateAllTest.py
)
import otbApplication as otb
import operator
import inspect
# List applications
appNames = [app for app in otb.Registry.GetAvailableApplications()]
for appName in appNames:
app = otb.Registry.CreateApplication(appName)
# Generate parameters
parameters = app.GetParametersKeys()
for param in parameters:
upParam = param.upper()
if app.HasValue(param):
operator.attrgetter(upParam)(app)
Markdown is supported
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