Skip to content

Commit

Permalink
Update logsums.py to only evaluate nesting coefficients if the logsum…
Browse files Browse the repository at this point in the history
…s are being calculated with a nested logit model
  • Loading branch information
JoeJimFlood authored Nov 7, 2024
1 parent 3d255d0 commit c6f5b56
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion activitysim/abm/models/util/logsums.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,8 @@ def compute_location_choice_logsums(
)

nest_spec = config.get_logit_model_settings(logsum_settings)
nest_spec = simulate.eval_nest_coefficients(nest_spec, coefficients, trace_label)
if nest_spec is not None: # nest_spec is None for MNL
nest_spec = simulate.eval_nest_coefficients(nest_spec, coefficients, trace_label)

locals_dict = {}
# model_constants can appear in expressions
Expand Down

0 comments on commit c6f5b56

Please sign in to comment.