Skip to content

UpdateParameters has to be called manually from the python API

Description

Some applications with code in DoUpdateParameters will not work when used from python if app.UpdateParameters() is not called before setting the parameter. It should probably be called after every call to SetParameterXXX from python, no? Was this discussed in the past?

As a side effect, examples in the application documentation in the cookbook are wrong because they do not show this call.

For an example of this in the wild see: https://gitlab.irstea.fr/raffaele.gaetano/iota2mtd/commit/dda43d880b010310ecc3947df1a6de5baa410915?view=parallel. Very ugly API.

Steps to reproduce

For example TrainImagesClassifier parameter sample.vfn.

Configuration information

Python API.

Edited by Victor Poughon