From 04d14853c15ee264c7aca6af4bbb924aeaf2e2b9 Mon Sep 17 00:00:00 2001
From: Guillaume Pasero <guillaume.pasero@c-s.fr>
Date: Tue, 20 Feb 2018 15:39:11 +0100
Subject: [PATCH] DOC: update CookBook with Get/SetParameters()

---
 Documentation/Cookbook/rst/recipes/python.rst | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/Documentation/Cookbook/rst/recipes/python.rst b/Documentation/Cookbook/rst/recipes/python.rst
index cbb119372d..33e46e1977 100644
--- a/Documentation/Cookbook/rst/recipes/python.rst
+++ b/Documentation/Cookbook/rst/recipes/python.rst
@@ -56,6 +56,15 @@ application, changing the algorithm at each iteration.
       # This will execute the application and save the output file
       app.ExecuteAndWriteOutput()
 
+If you want to handle the parameters from a Python dictionary, you can use the
+functions *SetParameters()* and *GetParameters()*.
+
+.. code-block:: python
+
+    params = {"in":"myInput.tif", "type.mean.radius":4}
+    app.SetParameters(params)
+    params2 = app.GetParameters()
+
 Numpy array processing
 ----------------------
 
-- 
GitLab