ActivitySim / activitysim

An Open Platform for Activity-Based Travel Modeling
https://activitysim.github.io
BSD 3-Clause "New" or "Revised" License
191 stars 98 forks source link

Hard Coded Person Types in CDAP #356

Closed danielsclint closed 3 years ago

danielsclint commented 3 years ago

The CDAP model contains hard coded person type (ptype) values for workers and children.

For the ARC implementation this causes problems in the tour scheduling components where the children ptypes are further subdivided beyond the values in the hard-coded expression. We would ideally like to be able to define 9 as another child person type for tour scheduling, but this would break the upstream CDAP components.

Preferably, the ptypes should be asserted in the settings.yaml or one of the model configuration yaml files.

https://github.com/ActivitySim/activitysim/blob/964ee009f81f2fe14e908ed8a3f1881f04d07127/activitysim/abm/models/util/cdap.py#L38-L39

bstabler commented 3 years ago

These should move to the new constants.yaml file

https://github.com/ActivitySim/activitysim/blob/multizone/activitysim/examples/example_mtc/configs/constants.yaml

danielsclint commented 3 years ago

This feature is not available on the develop branch at this point in time, so I didn't incorporate it. I did just issue a pull request to address the ARC specific issue this issue relates.

bstabler commented 3 years ago

this is in the release version now