Skip to content

Commit f69ff1e

Browse files
committed
format
1 parent 48ad3aa commit f69ff1e

1 file changed

Lines changed: 27 additions & 23 deletions

File tree

high_quality_transit_areas/rail_ferry_brt_stops.py

Lines changed: 27 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -38,27 +38,28 @@ def gcs_pandas():
3838

3939
ac_transit_route_id = ["1T"]
4040
# include non-Tempo AC Transit BRT stops by stop_id
41-
ac_transit_stop_ids = ['52728',
42-
'53334',
43-
'58888',
44-
'52643',
45-
'52642',
46-
'58858',
47-
'55570',
48-
'55593',
49-
'54655',
50-
'56888',
51-
'52333',
52-
'51606',
53-
'51584',
54-
'51579',
55-
'53888',
56-
'55558',
57-
'57999',
58-
'55777',
59-
'59400',
60-
'50542',
61-
'59555',
41+
ac_transit_stop_ids = [
42+
"52728",
43+
"53334",
44+
"58888",
45+
"52643",
46+
"52642",
47+
"58858",
48+
"55570",
49+
"55593",
50+
"54655",
51+
"56888",
52+
"52333",
53+
"51606",
54+
"51584",
55+
"51579",
56+
"53888",
57+
"55558",
58+
"57999",
59+
"55777",
60+
"59400",
61+
"50542",
62+
"59555",
6263
]
6364
metro_route_desc = ["METRO SILVER LINE", "METRO ORANGE LINE", "METRO J LINE", "METRO G LINE"]
6465

@@ -272,8 +273,11 @@ def grab_brt_stops(gdf: gpd.GeoDataFrame, route_types: list = ["3"]) -> gpd.GeoD
272273
]
273274

274275
ac_transit_brt = brt_operator_stops[
275-
(brt_operator_stops.name == ac_transit_name) &
276-
((brt_operator_stops.route_id.isin(ac_transit_route_id)) | (brt_operator_stops.stop_id.isin(ac_transit_stop_ids)))
276+
(brt_operator_stops.name == ac_transit_name)
277+
& (
278+
(brt_operator_stops.route_id.isin(ac_transit_route_id))
279+
| (brt_operator_stops.stop_id.isin(ac_transit_stop_ids))
280+
)
277281
]
278282

279283
vta_brt = brt_operator_stops[(brt_operator_stops.name == vta_name) & (brt_operator_stops.stop_id.isin(vta_include))]

0 commit comments

Comments
 (0)