Skip to content

Commit

Permalink
update TM2_line_haul_name for cable car
Browse files Browse the repository at this point in the history
The purpose of this change is to write out runtime for cable car as well.
  • Loading branch information
ychtw committed May 14, 2024
1 parent 2599279 commit 8af5709
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lasso/mtc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1937,7 +1937,7 @@ def cube_format(transit_network, row):
s += "\n OPERATOR={},".format(int(row.TM2_operator) if ~math.isnan(row.TM2_operator) else 99)
s += '\n SHORTNAME=\"%s",' % (row.route_short_name,)
s += '\n VEHICLETYPE={},'.format(row.vehtype_num)
if row.TM2_line_haul_name in ["Light rail", "Heavy rail", "Commuter rail", "Ferry service"]:
if row.TM2_line_haul_name in ["Light rail", "Heavy rail", "Commuter rail", "Ferry service", "Cable Car"]:
add_nntime = True
else:
add_nntime = False
Expand Down
2 changes: 1 addition & 1 deletion mtc_data/lookups/gtfs_to_tm2_mode_crosswalk.csv
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Petaluma_2016_5_22,Petaluma Transit,267,21,3,68,Local bus,22,0,Motor Standard Bu
RioVista_2015_8_20,Rio Vista Delta Breeze,5,13,3,52,Local bus,14,0,Motor Standard Bus
SFMTA_2015_8_11,San Francisco Municipal Transportation Agency,SFMTA,22,0,110,Light rail,39,0,LRV2
SFMTA_2015_8_11,San Francisco Municipal Transportation Agency,SFMTA,22,3,21,Local bus,2,0,Motor Standard Bus
SFMTA_2015_8_11,San Francisco Municipal Transportation Agency,SFMTA,22,5,20,Local bus,3,0,Motor Standard Bus
SFMTA_2015_8_11,San Francisco Municipal Transportation Agency,SFMTA,22,5,20,Cable Car,3,0,Motor Standard Bus
SF_Bay_Ferry2016_07_01,San Francisco Bay Ferry,SB,25,4,101,Ferry service,36,0,Ferry
SamTrans_2015_8_20,SamTrans,samtrans-ca-us,6,3,24,Local bus,4,0,Motor Standard Bus
SamTrans_2015_8_20,SamTrans,samtrans-ca-us,6,3,80,Express bus,25,1,SamTrans Plus Bus
Expand Down

0 comments on commit 8af5709

Please sign in to comment.