Cannot set RAM parameter with SetParameters() function
In Python, I want to set the RAM parameter (available memory for processing), using SetParameters()
but it fails.
Small piece of code for reproducing the error :
import otbApplication
app = otbApplication.Registry.CreateApplication('BandMath')
app.SetParameters({'il': ['any_image.tif'], 'exp': 'im1b1', 'out': 'output.tif', 'ram': 512})
Error raised :
NotImplementedError: Wrong number or type of arguments for overloaded function 'Application_SetParameterString'.
Possible C/C++ prototypes are:
Application::SetParameterString(std::string,std::string,bool)
Application::SetParameterString(std::string,std::string)
It seems to fail in the SetParameterValue()
function. Indeed, when looking at the code of SetParameterValue
inside otbApplication.py, ParameterType_RAM is handled as a string whereas it should be handled as an int.
Configuration information
OTB version 7.2
Edited by Nicolas Narçon