Skip to content

Commit

Permalink
Fix pybinds
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidKerkmann committed Nov 15, 2024
1 parent 600ab95 commit 02e6884
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ PYBIND11_MODULE(_simulation_abm, m)

pymio::bind_class<mio::abm::ProtectionEvent, pymio::EnablePickling::Never>(m, "ProtectionEvent")
.def(py::init<mio::abm::ProtectionType, mio::abm::TimePoint>(), py::arg("type"), py::arg("time"))
.def_readwrite("exposure_type", &mio::abm::ProtectionEvent::type)
.def_readwrite("type", &mio::abm::ProtectionEvent::type)
.def_readwrite("time", &mio::abm::ProtectionEvent::time);

pymio::bind_class<mio::abm::TestingStrategy, pymio::EnablePickling::Never>(m, "TestingStrategy")
Expand Down

0 comments on commit 02e6884

Please sign in to comment.