Skip to content

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 👍

@jzimbel-mbta jzimbel-mbta merged commit ad1f092 into main Feb 5, 2025
4 checks passed
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.

3 participants