Skip to content

adjust naming and assignment of ABM age groups #846

@reneSchm

Description

@reneSchm

Motivation / Current Behaviour

We want to apply recent changes to age groups in abm_minimal.cpp to all other ABM files.

Enhancement description

The proposed changes include

  • renaming age group variables to use lower-case letters, so they do not look like macros,
  • changing value assignment from AgeGroup(num_age_groups - n) to simply AgeGroup(n).
    • The idea for the former was that it could help a user assigning AgeGroups values in [0, num_age_groups). This is better achieved using documentation and some asserts in the ABM code.

Additional context

No response

Checklist

  • Attached labels, especially loc:: or model:: labels.
  • Linked to project

Metadata

Metadata

Labels

class::improvementCleanup that doesn't affect functionalitygood first issueGood for newcomersloc::backendThis issue concerns the C++ backend implementation.model::abmThis issue concerns any kind of agent-based model.

Type

No type

Projects

Status

Done (Total) 💯

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions