From a5d725703f1697a7b861c0ffe299382f0ee2bc61 Mon Sep 17 00:00:00 2001 From: rakow Date: Wed, 13 Nov 2024 17:25:13 +0100 Subject: [PATCH] update matsim version --- pom.xml | 4 ++-- .../matsim/prepare/population/AssignReferencePopulation.java | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index ab41dca4..cf5bbad9 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ matsim-all - 2025.0-PR3549 + 2025.0-PR3552 @@ -128,7 +128,7 @@ com.github.matsim-org gtfs2matsim - 0bd5850fd6 + 47b0802a29 org.matsim diff --git a/src/main/java/org/matsim/prepare/population/AssignReferencePopulation.java b/src/main/java/org/matsim/prepare/population/AssignReferencePopulation.java index f9e458c9..94ddb4c9 100644 --- a/src/main/java/org/matsim/prepare/population/AssignReferencePopulation.java +++ b/src/main/java/org/matsim/prepare/population/AssignReferencePopulation.java @@ -98,6 +98,9 @@ public Integer call() throws Exception { for (Map.Entry e : ProgressBar.wrap(persons, "Assigning reference population")) { CSVRecord p = e.getValue(); + + // The persons csv is upscaled using the weight of the person, which is easier to handle in many algorithms + // However, here we take only the original person from the person table, which means that the weight needs to be considered as well if (!p.get("seq").equals("0")) continue;