Skip to content

Commit

Permalink
Add "group" column in CSV path results
Browse files Browse the repository at this point in the history
For future use (see #924, for example)
  • Loading branch information
ansoncfit committed Feb 29, 2024
1 parent a55fa2d commit b90a9f7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main/java/com/conveyal/r5/analyst/cluster/PathResult.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ public class PathResult {
"transferTime",
"waitTimes",
"totalTime",
"nIterations"
"nIterations",
"group"
};

public PathResult(AnalysisWorkerTask task, TransitLayer transitLayer) {
Expand Down Expand Up @@ -141,7 +142,10 @@ public ArrayList<String[]>[] summarizeIterations(Stat stat) {
score = thisScore;
}
}
String[] row = ArrayUtils.addAll(path, transfer, waits, totalTime, String.valueOf(nIterations));
String group = ""; // Reserved for future use
String[] row = ArrayUtils.addAll(
path, transfer, waits, totalTime, String.valueOf(nIterations), group
);
checkState(row.length == DATA_COLUMNS.length);
summary[d].add(row);
}
Expand Down

0 comments on commit b90a9f7

Please sign in to comment.