Skip to content

Commit

Permalink
rt: fix separate_trip spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
pablohoch committed May 24, 2022
1 parent 09171d7 commit da07702
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions modules/rt/include/motis/rt/separate_trip.h
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ inline void update_event_uuids(
}
}

inline void seperate_trip(schedule& sched, ev_key const& k) {
inline void separate_trip(schedule& sched, ev_key const& k) {
auto const in_out_allowed = get_route_in_out_allowed(k);
auto const station_nodes = route_station_nodes(k);
std::vector<incoming_edge_patch> incoming;
Expand All @@ -265,10 +265,10 @@ inline void seperate_trip(schedule& sched, ev_key const& k) {
update_event_uuids(sched, k, edges, old_trip_edges);
}

inline void seperate_trip(schedule& sched, trip const* trp) {
inline void separate_trip(schedule& sched, trip const* trp) {
auto const first_dep =
ev_key{trp->edges_->front().get_edge(), trp->lcon_idx_, event_type::DEP};
seperate_trip(sched, first_dep);
separate_trip(sched, first_dep);
}

} // namespace motis::rt
4 changes: 2 additions & 2 deletions modules/rt/src/rt_handler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ void rt_handler::update(motis::ris::Message const* m) {
}

if (separate_trp != nullptr) {
seperate_trip(sched_, separate_trp);
separate_trip(sched_, separate_trp);
resolved = resolve();
stats_.track_separations_++;
}
Expand Down Expand Up @@ -273,7 +273,7 @@ void rt_handler::propagate() {
auto const trip_fit = fits_trip(sched_, k, t);
if (!edge_fit || !trip_fit) {
auto const trp = sched_.merged_trips_[k.lcon()->trips_]->front();
seperate_trip(sched_, trp);
separate_trip(sched_, trp);

if (!trip_fit) {
trips_to_correct.insert(trp);
Expand Down
2 changes: 1 addition & 1 deletion modules/rt/test/trip_separation_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ TEST_F(rt_trip_separation_test, simple) {
EXPECT_EQ(t1_d1->edges_->at(0).get_edge(), t1_d2->edges_->at(0).get_edge());
EXPECT_EQ(t2_d1->edges_->at(0).get_edge(), t2_d2->edges_->at(0).get_edge());

seperate_trip(*instance_
separate_trip(*instance_
->get<schedule_data>(
to_res_id(motis::module::global_res_id::SCHEDULE))
.schedule_,
Expand Down

0 comments on commit da07702

Please # to comment.