Skip to content

Param dict python

Guillaume Pasero requested to merge param_dict_python into develop

Summary

Set/Get parameters of an application using a Python dictionary.

Rationale

Part of story #1514, provides a natural alternative to XML parameter when using Applications in Python.

Implementation Details

Classes and files

M       Modules/Wrappers/SWIG/src/otbApplication.i

The SWIG wrapping file has been enhanced with 2 functions: SetParameters() and GetParameters().

Applications

Tests

M       Modules/Wrappers/SWIG/test/python/CMakeLists.txt
A       Modules/Wrappers/SWIG/test/python/PythonParametersDict.py

New test added for this feature.

Documentation

M       Documentation/Cookbook/rst/recipes/python.rst

Small update in CookBook Python recipe.

Additional notes

Work initiated by Alexia Mondot.

Merge request reports

Loading