Skip to content

Commit 600ab95

Browse files
committed
Fix error
1 parent 6839184 commit 600ab95

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cpp/tests/test_abm_serialization.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,12 @@ TEST(TestAbmSerialization, Trip)
8383
test_json_serialization<mio::abm::Trip>(reference_json);
8484
}
8585

86-
TEST(TestAbmSerialization, Vaccination)
86+
TEST(TestAbmSerialization, ProtectionEvent)
8787
{
8888
// See test_json_serialization for info on this test.
8989

9090
Json::Value reference_json;
91-
reference_json["exposure_type"] = Json::UInt(1);
91+
reference_json["type"] = Json::UInt(1);
9292
reference_json["time"]["seconds"] = Json::Int(2);
9393

9494
test_json_serialization<mio::abm::ProtectionEvent>(reference_json);

pycode/memilio-simulation/memilio/simulation/bindings/models/abm.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ PYBIND11_MODULE(_simulation_abm, m)
165165
.def_property_readonly("active", &mio::abm::TestingScheme::is_active);
166166

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

0 commit comments

Comments
 (0)