Skip to content

Commit f75b170

Browse files
committed
Import hoomd and hoomd.md modules
1 parent 8d758ea commit f75b170

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: 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)