Skip to content

Commit b90a9f7

Browse files
committed
Add "group" column in CSV path results
For future use (see #924, for example)
1 parent a55fa2d commit b90a9f7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/main/java/com/conveyal/r5/analyst/cluster/PathResult.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ public class PathResult {
6464
"transferTime",
6565
"waitTimes",
6666
"totalTime",
67-
"nIterations"
67+
"nIterations",
68+
"group"
6869
};
6970

7071
public PathResult(AnalysisWorkerTask task, TransitLayer transitLayer) {
@@ -141,7 +142,10 @@ public ArrayList<String[]>[] summarizeIterations(Stat stat) {
141142
score = thisScore;
142143
}
143144
}
144-
String[] row = ArrayUtils.addAll(path, transfer, waits, totalTime, String.valueOf(nIterations));
145+
String group = ""; // Reserved for future use
146+
String[] row = ArrayUtils.addAll(
147+
path, transfer, waits, totalTime, String.valueOf(nIterations), group
148+
);
145149
checkState(row.length == DATA_COLUMNS.length);
146150
summary[d].add(row);
147151
}

0 commit comments

Comments
 (0)