Skip to content

Commit

Permalink
Try removing : from filename to fix windows error
Browse files Browse the repository at this point in the history
  • Loading branch information
brynpickering committed Dec 19, 2023
1 parent 14e428b commit 1ce9be0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion genet/output/geojson.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def generate_standard_outputs_for_schedule(
for h in [7, 8, 9, 13, 16, 17, 18]:
save_geodataframe(
df_all_modes_vph[df_all_modes_vph["hour"].dt.hour == h],
filename=f"vph_all_modes_within_{h - 1}:30-{h}:30",
filename=f"vph_all_modes_within_{h - 1}_30-{h}_30",
output_dir=vph_dir,
include_shp_files=include_shp_files,
)
Expand Down
12 changes: 6 additions & 6 deletions tests/test_output_geojson.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,15 +397,15 @@ def test_generating_standard_outputs(network, tmpdir):
"vph_per_service.csv",
"vehicles_per_hour_all_modes.geojson",
"vph_per_stop_departing_from.csv",
"vph_all_modes_within_6:30-7:30.geojson",
"vph_all_modes_within_6_30-7_30.geojson",
"vph_per_stop_arriving_at.csv",
"shp_files",
"vehicles_per_hour_bus.geojson",
"vehicles_per_hour_rail.geojson",
}
assert set(os.listdir(os.path.join(tmpdir, "schedule", "vehicles_per_hour", "shp_files"))) == {
"vehicles_per_hour_all_modes.cpg",
"vph_all_modes_within_6:30-7:30.shx",
"vph_all_modes_within_6_30-7_30.shx",
"vehicles_per_hour_rail.prj",
"vehicles_per_hour_bus.shp",
"vehicles_per_hour_bus.dbf",
Expand All @@ -414,16 +414,16 @@ def test_generating_standard_outputs(network, tmpdir):
"vehicles_per_hour_all_modes.prj",
"vehicles_per_hour_bus.shx",
"vehicles_per_hour_rail.dbf",
"vph_all_modes_within_6:30-7:30.dbf",
"vph_all_modes_within_6_30-7_30.dbf",
"vehicles_per_hour_rail.cpg",
"vph_all_modes_within_6:30-7:30.shp",
"vph_all_modes_within_6_30-7_30.shp",
"vehicles_per_hour_rail.shp",
"vehicles_per_hour_all_modes.shx",
"vehicles_per_hour_bus.cpg",
"vehicles_per_hour_all_modes.shp",
"vph_all_modes_within_6:30-7:30.prj",
"vph_all_modes_within_6_30-7_30.prj",
"vehicles_per_hour_all_modes.dbf",
"vph_all_modes_within_6:30-7:30.cpg",
"vph_all_modes_within_6_30-7_30.cpg",
}
assert set(os.listdir(os.path.join(tmpdir, "schedule", "subgraphs"))) == {
"schedule_subgraph_links_bus.geojson",
Expand Down

0 comments on commit 1ce9be0

Please sign in to comment.