Skip to content

Commit

Permalink
update refs to time_helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
tiffanychu90 committed Nov 7, 2024
1 parent c527e3a commit 45d2725
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions gtfs_funnel/concatenate_monthly_scheduled_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
schedule_gtfs_dataset_key.
"""
import pandas as pd
from segment_speed_utils import helpers, time_helpers, time_series_utils
from shared_utils import rt_dates
from segment_speed_utils import helpers, time_series_utils
from shared_utils import rt_dates, time_helpers
from update_vars import GTFS_DATA_DICT, SCHED_GCS

def parse_service_date(df: pd.DataFrame) -> pd.DataFrame:
Expand Down
3 changes: 1 addition & 2 deletions gtfs_funnel/stop_arrivals_in_roads.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@

from segment_speed_utils import (helpers,
gtfs_schedule_wrangling,
time_helpers
)
from segment_speed_utils.project_vars import PROJECT_CRS
from shared_utils import rt_dates
from shared_utils import rt_dates, time_helpers
from update_vars import SHARED_GCS, SCHED_GCS

road_cols = ["linearid", "mtfcc", "fullname"]
Expand Down
2 changes: 1 addition & 1 deletion open_data/data_dictionary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ common-fields:
offpeak - offpeak hours are 12am-6:59am inclusive, 10am-2:59pm inclusive, and 8pm-11:59pm inclusive.
peak - peak hours are 7am-9:59am inclusive and 3pm-7:59pm inclusive.
all_day
definition_source: "https://github.com/cal-itp/data-analyses/blob/main/rt_segment_speeds/segment_speed_utils/time_helpers.py"
definition_source: "https://github.com/cal-itp/data-analyses/blob/main/_shared_utils/shared_utils/time_helpers.py"
- &hqta_type
definition: |-
Indicates the type of High Quality Transit Area as defined in the Public Resources Code that a stop is and/or falls within. Valid options are: hq_corridor_bus (PRC 21155), major_stop_bus (PRC 21064.3), major_stop_rail (PRC 21064.3), major_stop_ferry (PRC 21064.3), major_stop_brt (PRC 21064.3, 21060.2)
Expand Down
2 changes: 1 addition & 1 deletion open_data/xml/speeds_by_route_time_of_day_fgdc.xml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
offpeak - offpeak hours are 12am-6:59am inclusive, 10am-2:59pm inclusive, and 8pm-11:59pm inclusive.
peak - peak hours are 7am-9:59am inclusive and 3pm-7:59pm inclusive.
all_day </attrdef>
<attrdefs>https://github.com/cal-itp/data-analyses/blob/main/rt_segment_speeds/segment_speed_utils/time_helpers.py</attrdefs>
<attrdefs>https://github.com/cal-itp/data-analyses/blob/main/_shared_utils/shared_utils/time_helpers.py</attrdefs>
</attr>
<attr>
<attrlabl>speed_mph</attrlabl>
Expand Down
2 changes: 1 addition & 1 deletion open_data/xml/speeds_by_stop_segments_fgdc.xml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
offpeak - offpeak hours are 12am-6:59am inclusive, 10am-2:59pm inclusive, and 8pm-11:59pm inclusive.
peak - peak hours are 7am-9:59am inclusive and 3pm-7:59pm inclusive.
all_day </attrdef>
<attrdefs>https://github.com/cal-itp/data-analyses/blob/main/rt_segment_speeds/segment_speed_utils/time_helpers.py</attrdefs>
<attrdefs>https://github.com/cal-itp/data-analyses/blob/main/_shared_utils/shared_utils/time_helpers.py</attrdefs>
</attr>
<attr>
<attrlabl>base64_url</attrlabl>
Expand Down
3 changes: 2 additions & 1 deletion rt_segment_speeds/scripts/average_segment_speeds.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@
helpers,
metrics,
segment_calcs,
time_helpers,
time_series_utils
)
from shared_utils import time_helpers
from update_vars import GTFS_DATA_DICT, SEGMENT_GCS
from segment_speed_utils.project_vars import SEGMENT_TYPES


OPERATOR_COLS = [
"schedule_gtfs_dataset_key",
]
Expand Down
2 changes: 1 addition & 1 deletion rt_segment_speeds/scripts/average_summary_speeds.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
from calitp_data_analysis import utils
from segment_speed_utils import (gtfs_schedule_wrangling,
metrics,
time_helpers,
)
from shared_utils import time_helpers
from segment_speed_utils.project_vars import SEGMENT_TYPES
from update_vars import SEGMENT_GCS, GTFS_DATA_DICT
from average_segment_speeds import (OPERATOR_COLS, CROSSWALK_COLS,
Expand Down

0 comments on commit 45d2725

Please sign in to comment.