/// \brief Convert a NumPy array to a ndbuffer_image
...
...
@@ -33,6 +35,8 @@ namespace pybind11::detail
boolload(handleh,bool)
{
if(!pybind11::array::check_(h))
throwstd::invalid_argument(fmt::format("Input value is not a valid array (Got `{}`)",static_cast<std::string>(pybind11::str(pybind11::type::handle_of(h)))));