Skip to content

Commit

Permalink
Merge pull request #22 from SSAGESLabs/pz/pybind11
Browse files Browse the repository at this point in the history
Import hoomd and hoomd.md modules
  • Loading branch information
pabloferz authored Sep 6, 2023
2 parents 8d758ea + f75b170 commit 9deea21
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/hoomd_dlext.cc
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ void export_PySampler(py::module m)
py::class_<HalfStepHook, PyHalfStepHook, SPtr<HalfStepHook>>(m, "HalfStepHook")
.def(py::init<>())
.def("update", &HalfStepHook::update);
#else
py::module_::import("hoomd");
py::module_::import("hoomd.md");
#endif

py::class_<PySampler, SPtr<PySampler>, HalfStepHook>(m, "DLExtSampler")
Expand Down

0 comments on commit 9deea21

Please sign in to comment.