From 453e767c1a70f93cefa31eff13a43096f6c4f73e Mon Sep 17 00:00:00 2001 From: rakow Date: Tue, 5 Nov 2024 18:24:32 +0100 Subject: [PATCH] write mode shares by purposes --- matsim/scenariogen/data/run_create_ref_data.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/matsim/scenariogen/data/run_create_ref_data.py b/matsim/scenariogen/data/run_create_ref_data.py index 058e836..ee7c320 100644 --- a/matsim/scenariogen/data/run_create_ref_data.py +++ b/matsim/scenariogen/data/run_create_ref_data.py @@ -214,6 +214,9 @@ def create(survey_dirs, transform_persons, transform_trips, aggr = summarize_mode_usage(persons, trips) aggr.to_csv(output_prefix + "mode_users_ref.csv") + aggr = grouped_share(trips, ["purpose", "main_mode"]) + aggr.to_csv(output_prefix + "mode_share_per_purpose_ref.csv") + mode_share_distance_distribution(trips, dist_groups).to_csv(output_prefix + "mode_share_distance_distribution.csv") groups = None