Skip to content

Commit

Permalink
replace orca inject with state object
Browse files Browse the repository at this point in the history
  • Loading branch information
dhensle committed Mar 7, 2024
1 parent 4201d36 commit 48be6f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions activitysim/abm/models/location_choice.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def _location_sample(
"dest_col_name": skims.dest_key, # added for sharrow flows
"timeframe": "timeless",
"reindex": reindex,
"land_use": inject.get_table("land_use").to_frame(),
"land_use": state.get_dataframe("land_use"),
}
locals_d.update(model_settings.CONSTANTS or {})

Expand Down Expand Up @@ -624,7 +624,7 @@ def run_location_simulate(
"dest_col_name": skims.dest_key, # added for sharrow flows
"timeframe": "timeless",
"reindex": reindex,
"land_use": inject.get_table("land_use").to_frame(),
"land_use": state.get_dataframe("land_use"),
}
locals_d.update(model_settings.CONSTANTS or {})

Expand Down
4 changes: 2 additions & 2 deletions activitysim/abm/models/trip_destination.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def _destination_sample(
"size_terms": size_term_matrix,
"size_terms_array": size_term_matrix.df.to_numpy(),
"timeframe": "trip",
"land_use": inject.get_table("land_use").to_frame(),
"land_use": state.get_dataframe("land_use"),
}
)
locals_dict.update(skims)
Expand Down Expand Up @@ -926,7 +926,7 @@ def trip_destination_simulate(
"size_terms": size_term_matrix,
"size_terms_array": size_term_matrix.df.to_numpy(),
"timeframe": "trip",
"land_use": inject.get_table("land_use").to_frame(),
"land_use": state.get_dataframe("land_use"),
}
)
locals_dict.update(skims)
Expand Down

0 comments on commit 48be6f4

Please sign in to comment.