Skip to content

Commit

Permalink
Merge pull request #1285 from cal-itp/ah_gtfs
Browse files Browse the repository at this point in the history
Ah gtfs
  • Loading branch information
amandaha8 authored Nov 9, 2024
2 parents 7b579b0 + 090161f commit ec8fb58
Show file tree
Hide file tree
Showing 11 changed files with 59,743 additions and 9,193 deletions.
188 changes: 105 additions & 83 deletions gtfs_digest/03_report.ipynb

Large diffs are not rendered by default.

56,741 changes: 47,634 additions & 9,107 deletions gtfs_digest/37_transit_bunching_samples.ipynb

Large diffs are not rendered by default.

1,635 changes: 1,635 additions & 0 deletions gtfs_digest/39_banning_transit.ipynb

Large diffs are not rendered by default.

3,261 changes: 3,261 additions & 0 deletions gtfs_digest/40_operators_prep.ipynb

Large diffs are not rendered by default.

3,135 changes: 3,135 additions & 0 deletions gtfs_digest/41_transit_bunching_all.ipynb

Large diffs are not rendered by default.

2,234 changes: 2,234 additions & 0 deletions gtfs_digest/42_transit_bunching_kernel.ipynb

Large diffs are not rendered by default.

1,703 changes: 1,703 additions & 0 deletions gtfs_digest/43_transit_bunching.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion gtfs_digest/_operators_prep.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,4 @@ def operators_schd_vp_rt()->pd.DataFrame:
.sort_values(by = ["caltrans_district","organization_name"])
.reset_index(drop = True)
)
return final
return final
12 changes: 12 additions & 0 deletions gtfs_funnel/crosswalk_gtfs_dataset_key_to_organization.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,18 @@ def create_gtfs_dataset_key_to_organization_crosswalk(
how = "inner"
)

# Fill this in manually.
df_with_org.loc[
(df_with_org.organization_name == "City of Banning"), "caltrans_district"
] = "08 - San Bernardino"

df_with_org.loc[
(
df_with_org.organization_name
== "Dumbarton Bridge Regional Operations Consortium"
),
"caltrans_district",
] = "04 - Oakland"
return df_with_org

def load_ntd(year: int) -> pd.DataFrame:
Expand Down
4 changes: 2 additions & 2 deletions gtfs_funnel/update_vars.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
)


analysis_date_list = [rt_dates.DATES["oct2024g"]]

#analysis_date_list = [rt_dates.DATES["oct2024g"]]
analysis_date_list = all_dates
GTFS_DATA_DICT = catalog_utils.get_catalog("gtfs_analytics_data")

COMPILED_CACHED_VIEWS = GTFS_DATA_DICT.gcs_paths.COMPILED_CACHED_VIEWS
Expand Down
21 changes: 21 additions & 0 deletions portfolio/sites/gtfs_digest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@ parts:
params:
district: 01 - Eureka
sections:
- organization_name: Blue Lake Rancheria
- organization_name: City of Arcata
- organization_name: City of Eureka
- organization_name: Curry Public Transit
- organization_name: Humboldt Transit Authority
- organization_name: Lake Transit Authority
- organization_name: Mendocino Transit Authority
- organization_name: POINT
Expand All @@ -20,8 +23,10 @@ parts:
- organization_name: Modoc Transportation Agency
- organization_name: Plumas Transit Systems
- organization_name: Redding Area Bus Authority
- organization_name: Shasta County
- organization_name: Siskiyou County
- organization_name: Susanville Indian Rancheria
- organization_name: Tehama County
- organization_name: Trinity County
- caption: District 03 - Marysville
params:
Expand All @@ -39,7 +44,9 @@ parts:
- organization_name: North Lake Tahoe Express
- organization_name: Placer County
- organization_name: Sacramento County
- organization_name: Sacramento Regional Transit District
- organization_name: Tahoe Transportation District
- organization_name: Tahoe Truckee Area Regional Transportation
- organization_name: University of California, Davis
- organization_name: Yolo County Transportation District
- organization_name: Yuba-Sutter Transit Authority
Expand All @@ -60,6 +67,7 @@ parts:
- organization_name: City of Union City
- organization_name: City of Vacaville
- organization_name: Cloverdale Transit
- organization_name: Commute.org
- organization_name: Eastern Contra Costa Transit Authority
- organization_name: Emeryville Transportation Management Agency
- organization_name: Livermore-Amador Valley Transit Authority
Expand All @@ -74,6 +82,8 @@ parts:
- organization_name: San Mateo County Transit District
- organization_name: Santa Clara Valley Transportation Authority
- organization_name: Solano County Transit
- organization_name: Solano Transportation Authority
- organization_name: Sonoma County
- organization_name: Sonoma-Marin Area Rail Transit District
- organization_name: Stanford University
- organization_name: University of California, Berkeley
Expand All @@ -93,6 +103,7 @@ parts:
- organization_name: Santa Barbara County Association of Governments
- organization_name: Santa Barbara Metropolitan Transit District
- organization_name: Santa Cruz Metropolitan Transit District
- organization_name: University of California, Santa Cruz
- caption: District 06 - Fresno
params:
district: 06 - Fresno
Expand Down Expand Up @@ -142,29 +153,37 @@ parts:
- organization_name: City of Lynwood
- organization_name: City of Maywood
- organization_name: City of Monterey Park
- organization_name: City of Moorpark
- organization_name: City of Norwalk
- organization_name: City of Ojai
- organization_name: City of Pasadena
- organization_name: City of Redondo Beach
- organization_name: City of Rosemead
- organization_name: City of Santa Clarita
- organization_name: City of Santa Monica
- organization_name: City of Sierra Madre
- organization_name: City of Simi Valley
- organization_name: City of South Gate
- organization_name: City of Thousand Oaks
- organization_name: City of Torrance
- organization_name: City of West Covina
- organization_name: City of West Hollywood
- organization_name: FlixBus
- organization_name: Foothill Transit
- organization_name: Gold Coast Transit District
- organization_name: Long Beach Transit
- organization_name: Los Angeles County
- organization_name: Los Angeles County Metropolitan Transportation Authority
- organization_name: Los Angeles World Airports
- organization_name: Palos Verdes Peninsula Transit Authority
- organization_name: University of California, Los Angeles
- organization_name: Ventura County Transportation Commission
- caption: District 08 - San Bernardino
params:
district: 08 - San Bernardino
sections:
- organization_name: Basin Transit
- organization_name: City of Banning
- organization_name: City of Beaumont
- organization_name: City of Corona
- organization_name: City of Needles
Expand Down Expand Up @@ -206,6 +225,8 @@ parts:
- organization_name: Flagship Cruises and Events Inc.
- organization_name: Imperial County Transportation Commission
- organization_name: North County Transit District
- organization_name: San Diego International Airport
- organization_name: San Diego Metropolitan Transit System
- organization_name: Yuma County Intergovernmental Public Transportation Authority
- caption: District 12 - Irvine
params:
Expand Down

0 comments on commit ec8fb58

Please sign in to comment.