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

feat: Support analysis over multiple service days #9

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jzimbel-mbta
Copy link
Member

Asana ticket: 📓 Misc. transit data report notebook updates

Crissy doesn't need to analyze part of a service day or days, so I removed the code related to that, reducing complexity a bit.

You can use any value as a map key in Elixir, which saved me a bunch of effort since I didn't have to constantly convert DateTimes to and from strings 😮‍💨

@jzimbel-mbta jzimbel-mbta requested review from a team and meagharty and removed request for a team January 28, 2025 21:56
Copy link

@meagharty meagharty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! I appreciate the tidying effort too

{terminals, stop_groups} = GlidesReport.Terminal.all_labeled_terminals_and_groups()
terminal_ids_input = GlidesReport.TerminalSelection.new(terminals, stop_groups)
{terminals, groups} = GlidesReport.Terminal.all_labeled_terminals_and_groups()
terminal_ids_input = TransitData.GlidesReport.TerminalSelection.new(terminals, groups)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: does this need the TransitData prefix?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, no it does not.

(I wish Credo could scan .livemd files...)


sample_rate_input =
Kino.Input.range("Sample data at (?)-minute intervals", min: 1, max: 5, step: 1, default: 5)
Kino.Input.range("Sample data at (?)-minute intervals", min: 1, max: 5, step: 1, default: 1)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updating this default makes sense 👍

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.

2 participants