Skip to content

Commit

Permalink
fixing person_rank call
Browse files Browse the repository at this point in the history
  • Loading branch information
dhensle committed Mar 11, 2024
1 parent f252006 commit d05f77c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions activitysim/estimation/larch/cdap.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,8 +412,6 @@ def read_yaml(filename, **kwargs):
if person_type_map is None:
raise KeyError("PERSON_TYPE_MAP missing from cdap_settings.yaml")

person_rank = cdap.assign_cdap_rank(None, persons, person_type_map)

coefficients = read_csv(
coefficients_file,
index_col="coefficient_name",
Expand Down Expand Up @@ -443,6 +441,7 @@ def read_yaml(filename, **kwargs):
spec1 = read_csv(spec1_file, comment="#")
values = read_csv(chooser_data_file, comment="#")
person_rank = cdap.assign_cdap_rank(
None,
persons[persons.household_id.isin(values.household_id)]
.set_index("person_id")
.reindex(values.person_id),
Expand Down

0 comments on commit d05f77c

Please sign in to comment.