Open JoeJimFlood opened 2 weeks ago
Also, adding this to the tour mode choice settings appears to have been a sufficient workaround:
LOGIT_TYPE: NL
NESTS:
name: root
coefficient: 1
alternatives:
- DRIVEALONE
- SHARED2
- SHARED3
- WALK
- BIKE
- WALK_TRANSIT
- TAXI
- TNC_SINGLE
- TNC_SHARED
Describe the bug When trying to run SANDAG's airport access models using ActivitySim version 1.3.2, there was a crash in nonmandatory tour destination that happened when evaluating the logsums using the (dummy) tour mode choice MNL model. This was caused by the validator requiring the nest_spec to be either a
LogitNestSpec
object or a dictionary. However, if one looks at the function that gets the nest_spec, it returnsNone
if the model is set to be MNL. This is later used as a flag to be MNL or NL when evaluating utilities, so having the nest_spec as a None type shouldn't be causing a crash.To Reproduce Steps to reproduce the behavior:
Expected behavior The logsums should have properly been evaluated without needing to check that the nonexistent nesting structure was valid.
Screenshots Full traceback from logfile: