From ed95318fd5944d933504d8b6450cd0f347ebe63a Mon Sep 17 00:00:00 2001 From: Sijia Wang Date: Wed, 14 Jun 2023 11:27:01 -0400 Subject: [PATCH 1/3] bart 19st and macarthur st SB stop fixes --- .../bart-19th-and-macarthur.wrangler | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 projects/year_2015/transit_fixes/bart-19th-and-macarthur.wrangler diff --git a/projects/year_2015/transit_fixes/bart-19th-and-macarthur.wrangler b/projects/year_2015/transit_fixes/bart-19th-and-macarthur.wrangler new file mode 100644 index 0000000..d115650 --- /dev/null +++ b/projects/year_2015/transit_fixes/bart-19th-and-macarthur.wrangler @@ -0,0 +1,15 @@ +--- +project: change southbound BART 19th and marcarthur station node id +category: Add Transit +tags: +- 'Major Transit' +dependencies: +--- + +self.feed.stops.loc[(self.feed.stops.stop_name == "19th St. Oakland") & (self.feed.stops.agency_raw_name == "BART_2015_8_3"), "model_node_id"] = 2625944 +self.feed.stops.loc[(self.feed.stops.stop_name == "19th St. Oakland") & (self.feed.stops.agency_raw_name == "BART_2015_8_3"), "osm_node_id"] = "" +self.feed.stops.loc[(self.feed.stops.stop_name == "19th St. Oakland") & (self.feed.stops.agency_raw_name == "BART_2015_8_3"), "shst_node_id"] = "" + +self.feed.stops.loc[(self.feed.stops.stop_name == "MacArthur") & (self.feed.stops.agency_raw_name == "BART_2015_8_3"), 'model_node_id'] = 2625943 +self.feed.stops.loc[(self.feed.stops.stop_name == "MacArthur") & (self.feed.stops.agency_raw_name == "BART_2015_8_3"), "osm_node_id"] = "" +self.feed.stops.loc[(self.feed.stops.stop_name == "MacArthur") & (self.feed.stops.agency_raw_name == "BART_2015_8_3"), "shst_node_id"] = "" \ No newline at end of file From 593e6cb9793141e5f902e48bd2af1f554f4248b5 Mon Sep 17 00:00:00 2001 From: Sijia Wang Date: Wed, 14 Jun 2023 11:27:45 -0400 Subject: [PATCH 2/3] EA and EV frequency fixes --- .../ea-ev-frequencies-correction.wrangler | 183 ++++++++++++++++++ 1 file changed, 183 insertions(+) create mode 100644 projects/year_2015/transit_fixes/ea-ev-frequencies-correction.wrangler diff --git a/projects/year_2015/transit_fixes/ea-ev-frequencies-correction.wrangler b/projects/year_2015/transit_fixes/ea-ev-frequencies-correction.wrangler new file mode 100644 index 0000000..a6ea317 --- /dev/null +++ b/projects/year_2015/transit_fixes/ea-ev-frequencies-correction.wrangler @@ -0,0 +1,183 @@ +--- +project: correct ea and ev frequencies +category: Add Transit +tags: +- 'Major Transit' +dependencies: +--- + +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "116", "headway_secs"] = 1800 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "153", "headway_secs"] = 2700 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "197", "headway_secs"] = 3600 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "496", "headway_secs"] = 1200 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "516", "headway_secs"] = 1800 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "989", "headway_secs"] = 5400 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "1115", "headway_secs"] = 1800 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "1450", "headway_secs"] = 2160 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "1475", "headway_secs"] = 1800 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "1600", "headway_secs"] = 771 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "1601", "headway_secs"] = 900 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "2765", "headway_secs"] = 2160 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "2796", "headway_secs"] = 2160 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "3229", "headway_secs"] = 900 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "3313", "headway_secs"] = 1200 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "3406", "headway_secs"] = 1200 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "4055", "headway_secs"] = 1800 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "4070", "headway_secs"] = 2160 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "4077", "headway_secs"] = 1800 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "4573", "headway_secs"] = 1800 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "5257", "headway_secs"] = 900 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "5445", "headway_secs"] = 1200 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "7949", "headway_secs"] = 1800 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "7999", "headway_secs"] = 3600 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "8009", "headway_secs"] = 3600 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "8011", "headway_secs"] = 3600 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "8139", "headway_secs"] = 1800 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "8418", "headway_secs"] = 3600 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "8881", "headway_secs"] = 3600 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "8901", "headway_secs"] = 1800 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "8983", "headway_secs"] = 3600 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "9085", "headway_secs"] = 3600 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "9197", "headway_secs"] = 1350 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "9201", "headway_secs"] = 1200 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "9225", "headway_secs"] = 2700 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "9333", "headway_secs"] = 2700 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "9363", "headway_secs"] = 3600 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "9372", "headway_secs"] = 1200 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "9510", "headway_secs"] = 1800 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "9642", "headway_secs"] = 1800 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "10297", "headway_secs"] = 2700 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "10307", "headway_secs"] = 3600 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "10600", "headway_secs"] = 1350 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "10936", "headway_secs"] = 3600 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "11093", "headway_secs"] = 5400 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "23261", "headway_secs"] = 1200 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "23432", "headway_secs"] = 514 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "23576", "headway_secs"] = 1800 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "23779", "headway_secs"] = 2160 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "23988", "headway_secs"] = 3600 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "23989", "headway_secs"] = 3600 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "24545", "headway_secs"] = 600 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "11273", "headway_secs"] = 600 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "11541", "headway_secs"] = 450 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "12096", "headway_secs"] = 400 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "12113", "headway_secs"] = 720 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "11920", "headway_secs"] = 568 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "11957", "headway_secs"] = 600 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "12783", "headway_secs"] = 720 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "13160", "headway_secs"] = 327 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "13138", "headway_secs"] = 469 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "13013", "headway_secs"] = 514 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "13085", "headway_secs"] = 276 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "13630", "headway_secs"] = 1200 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "13881", "headway_secs"] = 450 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "13896", "headway_secs"] = 568 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "14035", "headway_secs"] = 490 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "13949", "headway_secs"] = 514 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "14152", "headway_secs"] = 900 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "14312", "headway_secs"] = 514 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "14304", "headway_secs"] = 675 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "14215", "headway_secs"] = 771 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "14278", "headway_secs"] = 600 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "14427", "headway_secs"] = 1200 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "14479", "headway_secs"] = 900 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "14723", "headway_secs"] = 1200 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "14721", "headway_secs"] = 1080 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "14930", "headway_secs"] = 1200 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "14932", "headway_secs"] = 600 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "15244", "headway_secs"] = 360 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "15219", "headway_secs"] = 830 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "15375", "headway_secs"] = 600 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "15302", "headway_secs"] = 635 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "15687", "headway_secs"] = 981 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "15659", "headway_secs"] = 981 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "15607", "headway_secs"] = 600 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "15818", "headway_secs"] = 1800 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "15817", "headway_secs"] = 1080 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "15841", "headway_secs"] = 1080 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "16000", "headway_secs"] = 1800 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "16039", "headway_secs"] = 1800 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "16296", "headway_secs"] = 469 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "16448", "headway_secs"] = 490 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "16557", "headway_secs"] = 1800 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "16798", "headway_secs"] = 981 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "16712", "headway_secs"] = 900 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "16709", "headway_secs"] = 1080 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "21344", "headway_secs"] = 1200 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "21385", "headway_secs"] = 900 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "21294", "headway_secs"] = 1800 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "21218", "headway_secs"] = 900 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "17017", "headway_secs"] = 1200 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "17418", "headway_secs"] = 540 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "17385", "headway_secs"] = 514 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "17152", "headway_secs"] = 635 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "17206", "headway_secs"] = 514 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "17613", "headway_secs"] = 1200 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "18155", "headway_secs"] = 450 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "18157", "headway_secs"] = 469 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "18597", "headway_secs"] = 635 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "19109", "headway_secs"] = 490 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "19117", "headway_secs"] = 327 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "19297", "headway_secs"] = 300 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "22784", "headway_secs"] = 830 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "22806", "headway_secs"] = 830 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "22511", "headway_secs"] = 514 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "22734", "headway_secs"] = 771 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "22767", "headway_secs"] = 568 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "22641", "headway_secs"] = 720 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "22299", "headway_secs"] = 900 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "22234", "headway_secs"] = 635 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "22289", "headway_secs"] = 291 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "22206", "headway_secs"] = 600 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "21878", "headway_secs"] = 981 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "21587", "headway_secs"] = 771 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "21887", "headway_secs"] = 720 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "21858", "headway_secs"] = 240 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "25343", "headway_secs"] = 1350 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "25269", "headway_secs"] = 1200 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "26431", "headway_secs"] = 5400 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "26445", "headway_secs"] = 5400 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "26525", "headway_secs"] = 5400 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "26655", "headway_secs"] = 900 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "27543", "headway_secs"] = 1200 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "27755", "headway_secs"] = 1200 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "27858", "headway_secs"] = 900 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "31452", "headway_secs"] = 2160 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "31455", "headway_secs"] = 1800 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "31510", "headway_secs"] = 900 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "31542", "headway_secs"] = 2700 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "27919", "headway_secs"] = 3600 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "28097", "headway_secs"] = 3600 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "28376", "headway_secs"] = 2700 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "29009", "headway_secs"] = 1800 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "29103", "headway_secs"] = 2700 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "29188", "headway_secs"] = 1800 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "29168", "headway_secs"] = 3600 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "29276", "headway_secs"] = 1200 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "29257", "headway_secs"] = 2700 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "29322", "headway_secs"] = 900 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "29302", "headway_secs"] = 2160 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "29393", "headway_secs"] = 600 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "29509", "headway_secs"] = 1800 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "29573", "headway_secs"] = 1200 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "29807", "headway_secs"] = 3600 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "29840", "headway_secs"] = 2700 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "30226", "headway_secs"] = 2700 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "30715", "headway_secs"] = 1200 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "31045", "headway_secs"] = 1350 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "31083", "headway_secs"] = 1350 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "31129", "headway_secs"] = 600 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "31141", "headway_secs"] = 1200 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "31145", "headway_secs"] = 514 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "31197", "headway_secs"] = 720 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "31213", "headway_secs"] = 1350 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "33413", "headway_secs"] = 3600 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "33503", "headway_secs"] = 1200 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "33316", "headway_secs"] = 3600 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "33390", "headway_secs"] = 2700 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "33416", "headway_secs"] = 3600 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "33327", "headway_secs"] = 1800 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "32317", "headway_secs"] = 771 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "32301", "headway_secs"] = 1080 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "32021", "headway_secs"] = 1542 +self.feed.frequencies.loc[self.feed.frequencies.trip_id == "32077", "headway_secs"] = 720 From c8de3e145c3419c1e5bbc4facc4b838b3708880e Mon Sep 17 00:00:00 2001 From: Sijia Wang Date: Mon, 3 Jul 2023 18:38:23 -0400 Subject: [PATCH 3/3] bart yellow line am southbound stop pattern fix --- ...t_yellow_line_southbound_am_stops.wrangler | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 projects/year_2015/transit_fixes/bart_yellow_line_southbound_am_stops.wrangler diff --git a/projects/year_2015/transit_fixes/bart_yellow_line_southbound_am_stops.wrangler b/projects/year_2015/transit_fixes/bart_yellow_line_southbound_am_stops.wrangler new file mode 100644 index 0000000..41f6995 --- /dev/null +++ b/projects/year_2015/transit_fixes/bart_yellow_line_southbound_am_stops.wrangler @@ -0,0 +1,21 @@ +--- +project: change am southbound BART yellow line stopping pattern +category: Add Transit +tags: +- 'Major Transit' +dependencies: +--- + +# BART Yellow Line AM Southbound +# The network creation process chose a GTFS trip between Pleasant Hill/Contra Costa Centre and Montgomery St. as the representative trip for the AM time period. Although this trip has the same shape (s404, the most common shape) as the full service trips, it makes fewer stops. This happened because the network creation step that chose the representative trip picked the first trip of the most common shape in every time period, and in the Yellow Line case, the first trip of shape s404 in the AM stops only between Pleasant Hill/Contra Costa Centre and Montgomery St. +# replace the AM stop pattern with other time periods + +# drop existing AM records +self.feed.stop_times = self.feed.stop_times[self.feed.stop_times.trip_id != "5877"] + +# copy from EA +copy_pattern_df = self.feed.stop_times[self.feed.stop_times.trip_id == "5781"].copy() +copy_pattern_df["trip_id"] = "5877" + +# append +self.feed.stop_times = pd.concat([self.feed.stop_times, copy_pattern_df], sort = False, ignore_index = True) \ No newline at end of file