diff --git a/src/dials/algorithms/spot_prediction/boost_python/ray_predictor.cc b/src/dials/algorithms/spot_prediction/boost_python/ray_predictor.cc index fd3494cc2a..0a224c652a 100644 --- a/src/dials/algorithms/spot_prediction/boost_python/ray_predictor.cc +++ b/src/dials/algorithms/spot_prediction/boost_python/ray_predictor.cc @@ -59,4 +59,11 @@ namespace dials { namespace algorithms { namespace boost_python { .def("__call__", &call_with_miller_index_array); } + void export_laue_ray_predictor() { + class_("LaueRayPredictor", no_init) + .def(init, mat3, mat3 >( + (arg("unit_s0"), arg("fixed_rotation"), arg("setting_rotation")))) + .def("__call__", &LaueRayPredictor::operator(), (arg("miller_index"), arg("UB"))); + } + }}} // namespace dials::algorithms::boost_python diff --git a/src/dials/algorithms/spot_prediction/boost_python/reflection_predictor.cc b/src/dials/algorithms/spot_prediction/boost_python/reflection_predictor.cc index d5699bb3db..9285a95040 100644 --- a/src/dials/algorithms/spot_prediction/boost_python/reflection_predictor.cc +++ b/src/dials/algorithms/spot_prediction/boost_python/reflection_predictor.cc @@ -173,8 +173,9 @@ namespace dials { namespace algorithms { namespace boost_python { const af::const_ref&) = &Predictor::operator(); class_("LaueReflectionPredictor", no_init) - .def(init&, + .def(init, const cctbx::uctbx::unit_cell&, const cctbx::sgtbx::space_group_type&, diff --git a/src/dials/algorithms/spot_prediction/reflection_predictor.h b/src/dials/algorithms/spot_prediction/reflection_predictor.h index d9748d9401..f06412bf58 100644 --- a/src/dials/algorithms/spot_prediction/reflection_predictor.h +++ b/src/dials/algorithms/spot_prediction/reflection_predictor.h @@ -28,6 +28,7 @@ #include #include #include +#include namespace dials { namespace algorithms {