@@ -191,17 +191,15 @@ PYBIND11_MODULE(_simulation_abm, m)
191191 py::arg (" person_id" ), py::arg (" time" ), py::arg (" destination" ), py::arg (" origin" ),
192192 py::arg (" type_of_activity" ), py::arg (" cells" ) = std::vector<uint32_t >())
193193 .def_readwrite (" person_id" , &mio::abm::Trip::person_id)
194- .def_readwrite (" time " , &mio::abm::Trip::time)
194+ .def_readwrite (" trip_time " , &mio::abm::Trip::time)
195195 .def_readwrite (" destination" , &mio::abm::Trip::destination)
196- .def_readwrite (" origin" , &mio::abm::Trip::origin)
197- .def_readwrite (" destination_type" , &mio::abm::Trip::destination_type)
198196 .def_readwrite (" cells" , &mio::abm::Trip::cells);
199197
200198 pymio::bind_class<mio::abm::TripList, pymio::EnablePickling::Never>(m, " TripList" )
201199 .def (py::init<>())
202- .def (" add_trip " , &mio::abm::TripList::add_trip , py::arg (" trip " ), py::arg ( " weekend " ) = false )
203- .def (" next_trip" , &mio::abm::TripList::get_next_trip, py::arg ( " weekend " ) = false )
204- .def (" num_trips" , &mio::abm::TripList::num_trips, py::arg ( " weekend " ) = false );
200+ .def (" add_trips " , &mio::abm::TripList::add_trips , py::arg (" trips " ) = std::vector<mio::abm::Trip>() )
201+ .def (" next_trip" , &mio::abm::TripList::get_next_trip)
202+ .def (" num_trips" , &mio::abm::TripList::num_trips);
205203
206204 pymio::bind_class<mio::abm::Model, pymio::EnablePickling::Never>(m, " Model" )
207205 .def (py::init<int32_t >())
0 commit comments