Skip to content

Commit 67eb5c4

Browse files
committed
rerun hqta pipeline and check that coronado included
1 parent ce097e1 commit 67eb5c4

File tree

3 files changed

+50
-3
lines changed

3 files changed

+50
-3
lines changed

high_quality_transit_areas/11_check_coronado_ferry.ipynb

+39-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
},
4343
{
4444
"cell_type": "code",
45-
"execution_count": 108,
45+
"execution_count": 4,
4646
"id": "7014fbd3-dcf0-49bb-a96b-0b9eefe4f8cd",
4747
"metadata": {
4848
"tags": []
@@ -150,6 +150,10 @@
150150
"execution_count": 125,
151151
"id": "1fa74fa7-8c60-4f22-9668-2504391d9af2",
152152
"metadata": {
153+
"collapsed": true,
154+
"jupyter": {
155+
"outputs_hidden": true
156+
},
153157
"tags": []
154158
},
155159
"outputs": [
@@ -929,7 +933,6 @@
929933
"cell_type": "markdown",
930934
"id": "35b296be-d7ca-4b88-90e2-97eadf96cd4b",
931935
"metadata": {
932-
"jp-MarkdownHeadingCollapsed": true,
933936
"tags": []
934937
},
935938
"source": [
@@ -1779,6 +1782,40 @@
17791782
"source": [
17801783
"trips.query('route_id == \"COR\"').merge(st_prepped, on=['trip_instance_key']).head(3) # OK here"
17811784
]
1785+
},
1786+
{
1787+
"cell_type": "markdown",
1788+
"id": "dfe84f3a-ae12-4e9a-8518-b0c057116943",
1789+
"metadata": {},
1790+
"source": [
1791+
"## final output check\n",
1792+
"\n",
1793+
"* looks good!"
1794+
]
1795+
},
1796+
{
1797+
"cell_type": "code",
1798+
"execution_count": 6,
1799+
"id": "f5082974-29bc-429a-9288-d2251e8b07c4",
1800+
"metadata": {
1801+
"tags": []
1802+
},
1803+
"outputs": [],
1804+
"source": [
1805+
"path = f'{GCS_FILE_PATH}hqta_areas.parquet'"
1806+
]
1807+
},
1808+
{
1809+
"cell_type": "code",
1810+
"execution_count": 9,
1811+
"id": "931c36f1-cd63-4335-822f-ee3b3c0ea399",
1812+
"metadata": {
1813+
"tags": []
1814+
},
1815+
"outputs": [],
1816+
"source": [
1817+
"# gpd.read_parquet(path).query('hqta_type == \"major_stop_ferry\"').explore()"
1818+
]
17821819
}
17831820
],
17841821
"metadata": {

high_quality_transit_areas/logs/hqta_processing.log

+9
Original file line numberDiff line numberDiff line change
@@ -201,3 +201,12 @@
201201
2025-04-22 08:40:53.296 | INFO | __main__:<module>:175 - C3_create_bus_hqta_types 2025-04-16 execution time: 0:00:13.423910
202202
2025-04-22 08:41:32.679 | INFO | __main__:<module>:219 - D1_assemble_hqta_points 2025-04-16 execution time: 0:00:17.606480
203203
2025-04-22 08:42:09.189 | INFO | __main__:<module>:168 - D2_assemble_hqta_polygons 2025-04-16 execution time: 0:00:14.338260
204+
2025-04-24 17:16:24.854 | INFO | __main__:<module>:280 - A1_rail_ferry_brt_stops 2025-04-16 execution time: 0:00:21.065356
205+
2025-04-24 17:22:39.637 | INFO | __main__:<module>:248 - B1_create_hqta_segments execution time: 0:05:41.149052
206+
2025-04-24 17:25:44.559 | INFO | __main__:<module>:334 - B2_create_aggregate_stop_frequencies 2025-04-16 execution time: 0:02:42.829724
207+
2025-04-24 17:26:20.730 | INFO | __main__:<module>:326 - B3_sjoin_stops_to_segments 2025-04-16 execution time: 0:00:13.305625
208+
2025-04-24 17:26:45.715 | INFO | __main__:<module>:152 - C1_prep_pairwise_intersections 2025-04-16 execution time: 0:00:04.071368
209+
2025-04-24 17:27:28.540 | INFO | __main__:<module>:124 - C2_find_intersections 2025-04-16 execution time: 0:00:08.957911
210+
2025-04-24 17:28:01.613 | INFO | __main__:<module>:175 - C3_create_bus_hqta_types 2025-04-16 execution time: 0:00:11.675193
211+
2025-04-24 17:28:39.115 | INFO | __main__:<module>:219 - D1_assemble_hqta_points 2025-04-16 execution time: 0:00:17.169588
212+
2025-04-24 17:29:14.216 | INFO | __main__:<module>:168 - D2_assemble_hqta_polygons 2025-04-16 execution time: 0:00:13.831337

high_quality_transit_areas/rail_ferry_brt_stops.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,10 @@ def assemble_stops(analysis_date: str) -> gpd.GeoDataFrame:
100100
columns = [
101101
"name", "feed_key", "trip_id",
102102
"route_id", "route_type", "route_desc",
103+
"gtfs_dataset_key"
103104
],
104105
get_pandas = True
105-
)
106+
).rename(columns={"gtfs_dataset_key":"schedule_gtfs_dataset_key"})
106107

107108
stops_with_route = pd.merge(
108109
stop_times,

0 commit comments

Comments
 (0)