Skip to content

Commit

Permalink
fix: avoid regenerating OSM when population changes (#265)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebhoerl authored Oct 20, 2024
1 parent 62fa577 commit f08437f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions matsim/scenario/supply/osm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit f08437f

Please sign in to comment.