Skip to content

Commit 27fba90

Browse files
committed
Selecting choices from joint tour participant ID column explicitly;
In estimation mode, the index of survey_participants_df does not reflect participant_id (when tested using real survey data). This change uses the ID column directly to select the choice set rather than relying on the index.
1 parent 3790e7e commit 27fba90

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

activitysim/abm/models/joint_tour_participation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ def joint_tour_participation(tours, persons_merged, chunk_size, trace_hh_id):
369369
# its value depends on whether the candidate's 'participant_id' is in the joint_tour_participant index
370370
survey_participants_df = estimator.get_survey_table("joint_tour_participants")
371371
participate = pd.Series(
372-
choices.index.isin(survey_participants_df.index.values), index=choices.index
372+
choices.index.isin(survey_participants_df.participant_id), index=choices.index
373373
)
374374

375375
# but estimation software wants to know the choices value (alternative index)

0 commit comments

Comments
 (0)