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

Update tour generation to account for whether tours are open or closed #118

Merged
merged 5 commits into from
Dec 3, 2024

Conversation

jmutikainen
Copy link
Contributor

  • Tour rates by tour type and age group take into account whether tour are open or closed
  • Open tours are considered half of closed tours in calculations

@jmutikainen jmutikainen requested review from zptro and attesn November 26, 2024 12:06
@jmutikainen
Copy link
Contributor Author

The name of youngest age group doesn't match its data (Helmet history), which should probably be changed sometime...

Copy link
Contributor

@zptro zptro left a comment

Choose a reason for hiding this comment

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

This causes AssertionError: 0.34241463698614005 != 0.34376735936254194 within 7 places (0.0013527223764018825 difference) in

self.assertAlmostEquals(
model.mode_share[0]["car_work"] + model.mode_share[0]["car_leisure"],
0.34376735936254194)
.

This check might seem silly, but it is to make sure all changes that cause model result changes are intentional. Could you please change the comparison value in the test?

@jmutikainen jmutikainen requested a review from zptro December 2, 2024 19:11
@jmutikainen jmutikainen merged commit c4c9e54 into main Dec 3, 2024
2 checks passed
@jmutikainen jmutikainen deleted the feat/tour_generation_by_tour_openness branch December 3, 2024 09:20
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