Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix inconsistent alts object name #817

Merged
merged 1 commit into from
Feb 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions activitysim/abm/models/joint_tour_frequency_composition.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def joint_tour_frequency_composition(
model_settings_file_name,
)

alt_tdd = simulate.read_model_alts(
alts = simulate.read_model_alts(
state, "joint_tour_frequency_composition_alternatives.csv", set_index="alt"
)

Expand All @@ -73,11 +73,11 @@ def joint_tour_frequency_composition(
if alt_preprocessor_settings:
locals_dict = {}

alt_tdd = alt_tdd.copy()
alts = alts.copy()

expressions.assign_columns(
state,
df=alt_tdd,
df=alts,
model_settings=alt_preprocessor_settings,
locals_dict=locals_dict,
trace_label=trace_label,
Expand Down Expand Up @@ -129,7 +129,7 @@ def joint_tour_frequency_composition(
choices = interaction_simulate(
state,
choosers=choosers,
alternatives=alt_tdd,
alternatives=alts,
spec=model_spec,
locals_d=constants,
trace_label=trace_label,
Expand Down Expand Up @@ -185,7 +185,7 @@ def joint_tour_frequency_composition(
# 33333 shop joint adults

joint_tours = process_joint_tours_frequency_composition(
state, choices, alt_tdd, temp_point_persons
state, choices, alts, temp_point_persons
)

tours = state.extend_table("tours", joint_tours)
Expand Down
Loading