Skip to content

Commit

Permalink
change time so the analysis ends at the simulation end time
Browse files Browse the repository at this point in the history
  • Loading branch information
GregorRyb committed Mar 15, 2024
1 parent 618f45a commit c0754cb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/org/matsim/analysis/ParkedVehiclesAnalysis.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public Integer call() throws Exception {
Path vehiclesPath = globFile(directory, "*output_vehicles.*");
Path outputFolder = Path.of(directory.toString() + "/analysis-parking");

int timeBins = 86400 / timeBinSize;
int timeBins = 129600 / timeBinSize;

if (!Files.exists(outputFolder)) {
Files.createDirectory(outputFolder);
Expand Down Expand Up @@ -158,8 +158,8 @@ private void analyzeParkingCapacityPerLink(Network network, Map<Id<Vehicle>, Lis
for (VehicleParkingData vehicleParkingData : parkingTracker.get(vehicleId)) {
int timeBin;
int previousTimeBin;
if (vehicleParkingData.time >= 86400.) {
timeBin = (int) (86400. / timeBinSize - 1);
if (vehicleParkingData.time >= 129600.) {
timeBin = (int) (129600. / timeBinSize - 1);
} else {
timeBin = (int) (vehicleParkingData.time / timeBinSize);
}
Expand Down

0 comments on commit c0754cb

Please sign in to comment.