-
Notifications
You must be signed in to change notification settings - Fork 19
846 adjust naming and assignment of abm age groups #871
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
846 adjust naming and assignment of abm age groups #871
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #871 +/- ##
=======================================
Coverage 95.45% 95.45%
=======================================
Files 118 118
Lines 9263 9269 +6
=======================================
+ Hits 8842 8848 +6
Misses 421 421 ☔ View full report in Codecov by Sentry. |
xsaschako
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
reneSchm
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The name changes are great, but the asserts need to be fixed. I added suggestions only to a few, since several are very similar.
| mio::abm::InfectionState infection_state, mio::abm::TimePoint t, | ||
| mio::abm::Parameters params) | ||
| { | ||
| assert((size_t)age.size < (size_t)params.get_num_groups()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| assert((size_t)age.size < (size_t)params.get_num_groups()); | |
| assert(age.get() < params.get_num_groups()); |
| mio::abm::Person& add_test_person(mio::abm::World& world, mio::abm::LocationId loc_id, mio::AgeGroup age, | ||
| mio::abm::InfectionState infection_state, mio::abm::TimePoint t) | ||
| { | ||
| assert((size_t)age.size < (size_t)world.parameters.get_num_groups()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| assert((size_t)age.size < (size_t)world.parameters.get_num_groups()); | |
| assert(age.get() < world.parameters.get_num_groups()); |
|
I opened #873 and will merge this asap with rene |
Changes and Information
Please briefly list the changes made, additional Information and what the Reviewer should look out for:
Merge Request - Guideline Checklist
Please check our git workflow. Use the draft feature if the Pull Request is not yet ready to review.
Checks by code author
Checks by code reviewer(s)
closes #846