Skip to content

Commit 9deea21

Browse files
authored
Merge pull request #22 from SSAGESLabs/pz/pybind11
Import hoomd and hoomd.md modules
2 parents 8d758ea + f75b170 commit 9deea21

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

python/hoomd_dlext.cc

+3
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ void export_PySampler(py::module m)
4141
py::class_<HalfStepHook, PyHalfStepHook, SPtr<HalfStepHook>>(m, "HalfStepHook")
4242
.def(py::init<>())
4343
.def("update", &HalfStepHook::update);
44+
#else
45+
py::module_::import("hoomd");
46+
py::module_::import("hoomd.md");
4447
#endif
4548

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

0 commit comments

Comments
 (0)