From c0754cb12b2f51337c0543a03f2d1826cc9542d8 Mon Sep 17 00:00:00 2001 From: GregorRyb Date: Fri, 15 Mar 2024 11:57:34 +0100 Subject: [PATCH] change time so the analysis ends at the simulation end time --- .../java/org/matsim/analysis/ParkedVehiclesAnalysis.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/matsim/analysis/ParkedVehiclesAnalysis.java b/src/main/java/org/matsim/analysis/ParkedVehiclesAnalysis.java index 1975779a..55e0eaf0 100644 --- a/src/main/java/org/matsim/analysis/ParkedVehiclesAnalysis.java +++ b/src/main/java/org/matsim/analysis/ParkedVehiclesAnalysis.java @@ -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); @@ -158,8 +158,8 @@ private void analyzeParkingCapacityPerLink(Network network, Map, 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); }