psrc / psrc_activitysim

2 stars 2 forks source link

schBusSpeed in tour mode choice spec not availble for trip destination logsums #76

Open stefancoe opened 3 weeks ago

stefancoe commented 3 weeks ago

@tedlini I believe this expression needs an '@'. When I add it it fixes the issue of not being able to find the 'schBusSpeed' constant, but now it cant find 'da_dist_skims_out.' Can you take a look? Thanks!

tedlini commented 3 weeks ago

@stefancoe, I haven't tested it yet, but I think it should be changed to df.da_dist_skims_out after adding the "@"

stefancoe commented 3 weeks ago

@tedlini your suggestion plus changing time_factor to df.time_factor worked. I had to change it in trip_mode_choice as well. I wonder if the reason you did not get an error has to do with the version of ActivitySim code you are using. Are you using the latest? If not, can you try running with the existing spec with the latest code ? Thanks!