From ddced326d1d2df69c0c5ee0bad3bc2bbb46bb194 Mon Sep 17 00:00:00 2001 From: Marie Laurent Date: Wed, 18 Dec 2024 16:41:20 +0100 Subject: [PATCH] fix : output trips & external education --- data/external/education.py | 2 +- synthesis/output.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/data/external/education.py b/data/external/education.py index 78950ce..d9325f1 100644 --- a/data/external/education.py +++ b/data/external/education.py @@ -16,7 +16,7 @@ def execute(context): ]] df_locations = df_locations[df_locations["activity_type"] == "education"] - df_locations = df_locations[["activity_type","education_type", "commune_id", "geometry"]].copy() + df_locations = df_locations[["activity_type","education_type", "commune_id","weight", "geometry"]].copy() df_locations["fake"] = False df_zones = context.stage("data.spatial.municipalities") diff --git a/synthesis/output.py b/synthesis/output.py index a1561b4..72f0fe7 100644 --- a/synthesis/output.py +++ b/synthesis/output.py @@ -183,7 +183,7 @@ def execute(context): if "csv" in output_formats: df_trips.to_csv("%s/%strips.csv" % (output_path, output_prefix), sep = ";", index = None, lineterminator = "\n") if "parquet" in output_formats: - df_trips.to_csv("%s/%strips.parquet" % (output_path, output_prefix)) + df_trips.to_parquet("%s/%strips.parquet" % (output_path, output_prefix)) # Prepare vehicles df_vehicle_types, df_vehicles = context.stage("synthesis.vehicles.vehicles")