Skip to content

Commit

Permalink
Fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidKerkmann committed Nov 15, 2024
1 parent 6839184 commit 600ab95
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cpp/tests/test_abm_serialization.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,12 @@ TEST(TestAbmSerialization, Trip)
test_json_serialization<mio::abm::Trip>(reference_json);
}

TEST(TestAbmSerialization, Vaccination)
TEST(TestAbmSerialization, ProtectionEvent)
{
// See test_json_serialization for info on this test.

Json::Value reference_json;
reference_json["exposure_type"] = Json::UInt(1);
reference_json["type"] = Json::UInt(1);
reference_json["time"]["seconds"] = Json::Int(2);

test_json_serialization<mio::abm::ProtectionEvent>(reference_json);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ PYBIND11_MODULE(_simulation_abm, m)
.def_property_readonly("active", &mio::abm::TestingScheme::is_active);

pymio::bind_class<mio::abm::ProtectionEvent, pymio::EnablePickling::Never>(m, "ProtectionEvent")
.def(py::init<mio::abm::ProtectionType, mio::abm::TimePoint>(), py::arg("exposure_type"), py::arg("time"))
.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("time", &mio::abm::ProtectionEvent::time);

Expand Down

0 comments on commit 600ab95

Please sign in to comment.