Scipy optimize result message should not be converted using .decode("utf-8)"
Using Deformetrica API for registration with otpimization_method_type : "ScipyLBFGS"
, I faced the following problem. Sometimes I get the error :
AttributeError: 'str' object has no attribute 'decode'
This error comes from
result = minimize([...])
msg = result.message.decode("utf-8")
in file deformetrica/core/estimators/scipy_optimize.py
line 111
According to what I have seen, minimize return a scipy.optimize.OptimizeResult
which have "message" field but this field is a string, and it doesn't recquire to use decode
which creates the error.
Edited by QuentinRapilly