mirror of
https://github.com/ZGCA-Forge/Elevator.git
synced 2026-02-04 13:25:23 +00:00
added other examples
This commit is contained in:
@@ -806,7 +806,7 @@ def generate_traffic_file(scenario: str, output_file: str, scale: Optional[str]
|
||||
complete_data = {"building": building_config, "traffic": traffic_data}
|
||||
|
||||
# 写入文件
|
||||
with open(output_file, "w") as f:
|
||||
with open(output_file, "w", encoding="utf-8") as f:
|
||||
json.dump(complete_data, f, indent=2, ensure_ascii=False)
|
||||
|
||||
print(f"Generated {len(traffic_data)} passengers for scenario '{scenario}' ({scale}) -> {output_file}")
|
||||
|
||||
Reference in New Issue
Block a user