Conversion failures (especially for ImageBuffer and vector classes) should be additionally logged.
By default, pybind11 will only raise an exception stating incompatible function arguments, which is a pain to debug for numpy parameters (as the cause could be an incompatible dtype, non-contiguous memory, index error, ...)
Conversion failures (especially for
ImageBuffer
and vector classes) should be additionally logged. By default,pybind11
will only raise an exception stating incompatible function arguments, which is a pain to debug for numpy parameters (as the cause could be an incompatibledtype
, non-contiguous memory, index error, ...)