Skip to content

Commit

Permalink
Merge pull request #817 from wsp-sag/jtfc-alts-obj-name
Browse files Browse the repository at this point in the history
Fix inconsistent alts object name
  • Loading branch information
jpn-- authored Feb 27, 2024
2 parents c151940 + 49e792d commit 3060911
Showing 1 changed file with 5 additions and 5 deletions.
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

0 comments on commit 3060911

Please sign in to comment.