Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speed averages (year and year-quarter grains) #1267

Merged
merged 5 commits into from
Oct 29, 2024
Merged

Conversation

tiffanychu90
Copy link
Member

@tiffanychu90 tiffanychu90 commented Oct 29, 2024

segment speeds

  • refactor average_segment_speeds and average_summary_speeds script for clarity, extended uses, and more generalizability:
    • use the same function for single day or multi-day averages
    • allow weighted averages for peak/offpeak/all_day calculations (which changes the grain and stacks the time periods as extra rows) or simple averages (aggregated at the grain it is at)
  • since the segment geometry is fairly stable across time, start averaging speeds over longer time spans to get a quarter (year-quarter) and year grain and test results for stop_segments
  • add more entries into gtfs_analytics_data.yml to explicitly define which columns are ones to group over and allow various grouping columns
  • note that the stop_segments.shape_stop_singleday entry could be deprecated or swapped out to support time-of-day averages - do a little exploratory work to decide
  • Research Request - Segment stability in speed time-series #1202

@tiffanychu90 tiffanychu90 linked an issue Oct 29, 2024 that may be closed by this pull request
@tiffanychu90 tiffanychu90 merged commit 90ee5f6 into main Oct 29, 2024
2 checks passed
@tiffanychu90 tiffanychu90 deleted the speed-averages branch October 29, 2024 17:09
@tiffanychu90 tiffanychu90 changed the title Speed averages Speed averages (year and year-quarter grains) Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Research Request - Segment stability in speed time-series
1 participant