Skip to content

Commit

Permalink
Add missing export for laue ray predictor. Add missing include. Fix t…
Browse files Browse the repository at this point in the history
…ypo.
  • Loading branch information
toastisme committed Mar 21, 2024
1 parent f460b66 commit 647a1a7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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>("LaueRayPredictor", no_init)
.def(init<vec3<double>, mat3<double>, mat3<double> >(
(arg("unit_s0"), arg("fixed_rotation"), arg("setting_rotation"))))
.def("__call__", &LaueRayPredictor::operator(), (arg("miller_index"), arg("UB")));
}

}}} // namespace dials::algorithms::boost_python
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,9 @@ namespace dials { namespace algorithms { namespace boost_python {
const af::const_ref<std::size_t>&) = &Predictor::operator();

class_<Predictor>("LaueReflectionPredictor", no_init)
.def(init<const vec3<double>&,
.def(init<const PolychromaticBeam&,
const Detector&,
const Goniometer&,
mat3<double>,
const cctbx::uctbx::unit_cell&,
const cctbx::sgtbx::space_group_type&,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include <dials/algorithms/spot_prediction/scan_varying_ray_predictor.h>
#include <dials/algorithms/spot_prediction/stills_ray_predictor.h>
#include <dials/algorithms/spot_prediction/ray_intersection.h>
#include <cctbx/miller/index_generator.h>

namespace dials { namespace algorithms {

Expand Down

0 comments on commit 647a1a7

Please sign in to comment.