From daa899ecad83809fcb56da96657f51b77c0e2e76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20H=C3=B6rl?= Date: Sun, 20 Oct 2024 17:56:53 +0200 Subject: [PATCH] fix: avoid regenerating OSM when population changes --- CHANGELOG.md | 1 + matsim/scenario/supply/osm.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 468795dc..37c79036 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ **Under development** +- fix: avoid regenerating OSM when population changes - feat: add municipality information to households and activities - chore: update to `eqasim-java` commit `ece4932` - feat: vehicles and vehicle types are now always generated diff --git a/matsim/scenario/supply/osm.py b/matsim/scenario/supply/osm.py index b9e79d3a..f723104e 100644 --- a/matsim/scenario/supply/osm.py +++ b/matsim/scenario/supply/osm.py @@ -6,13 +6,13 @@ def configure(context): context.stage("matsim.runtime.java") context.stage("matsim.runtime.pt2matsim") context.stage("data.osm.cleaned") - context.stage("synthesis.population.spatial.home.locations") + context.stage("data.spatial.iris") context.config("export_detailed_network", False) def execute(context): osm_path = "%s/output.osm.gz" % context.path("data.osm.cleaned") - crs = context.stage("synthesis.population.spatial.home.locations").crs + crs = context.stage("data.spatial.iris").crs pt2matsim.run(context, "org.matsim.pt2matsim.run.CreateDefaultOsmConfig", arguments=["config_template.xml"]