From b953b42addfbdb78dce0d9fce4ad6d9ec91c0923 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20H=C3=B6rl?= Date: Sun, 19 May 2024 11:08:37 +0200 Subject: [PATCH] feat: optionally not run MATSim (#231) --- CHANGELOG.md | 1 + matsim/output.py | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b0aa1b17..3d6ea0a6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ **Under development** +- feat: make it possible to disable the test run of MATSim before writing everything out - feat: check availability of open data sources for every PR - feat: make statistical matching attribute list configurable - feat: add urban type classifiation (unité urbaine) diff --git a/matsim/output.py b/matsim/output.py index dc42ec1e..1ef3b459 100644 --- a/matsim/output.py +++ b/matsim/output.py @@ -1,7 +1,10 @@ import shutil def configure(context): - context.stage("matsim.simulation.run") + if context.config("run_matsim", True): + # allow disabling performing one run of the simulation + context.stage("matsim.simulation.run") + context.stage("matsim.simulation.prepare") context.stage("matsim.runtime.eqasim")