Skip to content
Snippets Groups Projects
Commit b43f15b4 authored by Manuel Grizonnet's avatar Manuel Grizonnet
Browse files

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

parents c6007130 b7e2fac8
No related branches found
No related tags found
No related merge requests found
...@@ -84,3 +84,8 @@ add_test( NAME pyTvNewStyleParameters ...@@ -84,3 +84,8 @@ add_test( NAME pyTvNewStyleParameters
${OTB_DATA_ROOT}/Input/poupees.tif ${OTB_DATA_ROOT}/Input/poupees.tif
${TEMP}/pyTvNewStyleParametersTest.tif ${TEMP}/pyTvNewStyleParametersTest.tif
${OTB_DATA_ROOT}/Input/apTvUtSmoothingTest_OutXML.xml) ${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)
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