Skip to content

Commit

Permalink
Rcpp interrupt on freq_to_stop_times for #89
Browse files Browse the repository at this point in the history
  • Loading branch information
mpadge committed Sep 29, 2022
1 parent 774e82a commit 0d6da36
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: gtfsrouter
Title: Routing with GTFS (General Transit Feed Specification) Data
Version: 0.0.5.107
Version: 0.0.5.108
Authors@R: c(
person("Mark", "Padgham", , "[email protected]", role = c("aut", "cre")),
person("Marcin", "Stepniak", , "[email protected]", role = "aut",
Expand Down
2 changes: 1 addition & 1 deletion codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"codeRepository": "https://github.com/ATFutures/gtfs-router",
"issueTracker": "https://github.com/ATFutures/gtfs-router/issues",
"license": "https://spdx.org/licenses/GPL-3.0",
"version": "0.0.5.107",
"version": "0.0.5.108",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
Expand Down
2 changes: 2 additions & 0 deletions src/freq_to_stop_times.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ Rcpp::List rcpp_freq_to_stop_times (Rcpp::DataFrame frequencies,

for (size_t i = 0; i < ntrips; i++)
{
Rcpp::checkUserInterrupt ();

const int headway = f_headway [i];
const int start_time = f_start_time [i];
const int end_time = f_end_time [i];
Expand Down

0 comments on commit 0d6da36

Please sign in to comment.