BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Base class to wrap Python callable and pass it to C++. More...
Public Types | |
enum | CallbackType { SCALAR , RESIDUAL } |
Public Member Functions | |
PyCallback (CallbackType callback_type=SCALAR) | |
virtual std::vector< double > | call_residuals (mumufit::Parameters pars) |
Call Python callable and returns its result. More... | |
virtual double | call_scalar (mumufit::Parameters pars) |
Call Python callable and returns its result. More... | |
CallbackType | callback_type () const |
Base class to wrap Python callable and pass it to C++.
Used in swig interface file, intended to be overloaded from Python.
|
virtual |
Call Python callable and returns its result.
Intended to be overloaded in Python.
pars | Fit parameters object (intentionally passed by value). |
|
virtual |
Call Python callable and returns its result.
Intended to be overloaded in Python.
pars | Fit parameters object (intentionally passed by value). |