activitysim icon indicating copy to clipboard operation
activitysim copied to clipboard

parking duration at destination and origin.

Open stevenhz opened this issue 3 years ago • 1 comments

I have a question regarding the parking duration in the example_mtc/configs/trip_mode_choice_annotate_trips_preprocessor.csv

,origin_duration,"np.where(first_trip, np.where(inbound,df.duration * ~free_parking_available,0), 1)"
,dest_duration,"np.where(last_trip, np.where(inbound, df.duration * ~free_parking_available, 0), 1)"
,origin_parking_cost,origin_duration*origin_hourly_peak_parking_cost
,dest_parking_cost,dest_duration*dest_hourly_peak_parking_cost
,total_parking_cost,(origin_parking_cost + dest_parking_cost) / 2.0

image Suppose the ~free_parking_at_work is True. Taking the example of person_id = 1619, this person's first trip 531081, which is an outbound trip, I would expect the dest_duration = 4 instead of 0 at the outbound trip. The 2nd trip the duration is fine, and the 3rd one, I would expect to be 0 instead of 4.

stevenhz avatar Nov 30 '21 10:11 stevenhz

@dhensle can you please look into this? Thanks!

jfdman avatar Dec 08 '21 00:12 jfdman