Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix: avoid regenerating network and transit when population changes #265

Merged
merged 1 commit into from
Oct 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading