Skip to content

Conversation

@gcamp
Copy link
Member

@gcamp gcamp commented Jul 29, 2025

Summary

This PR fixes the operation rules logic in the trip classification system:

  • Updated comment to clarify "stop times" instead of "stops" for better accuracy
  • Removed unnecessary previous_stop_type initialization check that was redundant
  • Simplified the logic by always checking consecutive region stops, making the code more readable and maintainable

The changes improve code clarity while maintaining the same functional behavior for classifying trip types (regular_service, deviated_service, pure_microtransit, other).

🤖 Generated with Claude Code

- Update comment to clarify "stop times" instead of "stops"
- Remove unnecessary previous_stop_type initialization check
- Simplify logic by always checking consecutive region stops

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@gcamp gcamp enabled auto-merge (squash) July 29, 2025 18:58
@gcamp
Copy link
Member Author

gcamp commented Jul 29, 2025

As suggested by @hausen

@gcamp gcamp merged commit 83b9b1b into main Jul 29, 2025
1 check 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