File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
activitysim/abm/models/util Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -128,9 +128,9 @@ def expand_alternatives(df):
128128 # now concat all the lists
129129 new_alts = sum (alts , [])
130130
131- df .reset_index ("Alternative" , inplace = True )
131+ df .reset_index ([ "Alternative" ] , inplace = True )
132132 df ["Alternative" ] = new_alts
133- # rowid needs to bet set here - we're going to unstack this and we need
133+ # rowid needs to be set here - we're going to unstack this and we need
134134 # a unique identifier to keep track of the rows during the unstack
135135 df = df .set_index (['Rowid' , 'Alternative' ], append = True )
136136
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ def cdap_indiv_and_hhsize1(data_dir):
3030 return read_model_spec (
3131 os .path .join (data_dir , 'cdap_indiv_and_hhsize1.csv' ))
3232
33+
3334@pytest .fixture (scope = 'module' )
3435def cdap_interaction_coefficients (data_dir ):
3536 f = os .path .join (data_dir , 'cdap_interaction_coefficients.csv' )
You can’t perform that action at this time.
0 commit comments