Skip to content

Commit

Permalink
fix : output trips & external education (eqasim-org#291)
Browse files Browse the repository at this point in the history
Co-authored-by: Marie Laurent <[email protected]>
  • Loading branch information
2 people authored and Nitnelav committed Jan 20, 2025
1 parent fe5b00e commit 3c4dff4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion data/external/education.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion synthesis/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 3c4dff4

Please sign in to comment.