Skip to content

Commit

Permalink
transit pass subsidy filter_col bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dhensle committed Apr 15, 2024
1 parent 5920496 commit 0e23e81
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions activitysim/abm/models/transit_pass_subsidy.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,8 @@ def transit_pass_subsidy(
)

filter_col = model_settings.CHOOSER_FILTER_COLUMN_NAME
if filter_col is None:
choosers = persons_merged
else:
choosers = persons_merged[persons_merged[filter_col]]
if filter_col is not None:
choosers = choosers[choosers[filter_col]]
logger.info("Running %s with %d persons", trace_label, len(choosers))

model_spec = state.filesystem.read_model_spec(model_settings.SPEC)
Expand Down

0 comments on commit 0e23e81

Please sign in to comment.