Skip to content

Commit

Permalink
fix indexing of transfers, intervals in multi_modal calc
Browse files Browse the repository at this point in the history
  • Loading branch information
mpadge committed May 2, 2023
1 parent deabb28 commit 16d9ad5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: m4ra
Title: Many-to-Many Multi-Modal Routing Aggregator
Version: 0.1.0.200
Version: 0.1.0.201
Authors@R:
person(given = "Mark",
family = "Padgham",
Expand Down
4 changes: 2 additions & 2 deletions R/times-multi-modal.R
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ m4ra_times_multi_mode <- function (net_sc = NULL,
# res is then 3 matrices of (times, transfers, intervals)
index <- seq_len (nverts_out)
res_times <- res [, index]
res_intervals <- res [, index + nverts_out]
res_transfers <- res [, index + 2 * nverts_out]
res_transfers <- res [, index + nverts_out]
res_intervals <- res [, index + 2 * nverts_out]

maxr <- rcpp_matrix_max (res_times)
res_times [res_times == maxr] <- NA_integer_
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/m4ra",
"issueTracker": "https://github.com/ATFutures/m4ra/issues",
"license": "https://spdx.org/licenses/GPL-3.0",
"version": "0.1.0.200",
"version": "0.1.0.201",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
Expand Down

0 comments on commit 16d9ad5

Please sign in to comment.