Skip to content

Commit d514e75

Browse files
Merge branch 'new_skims' into dev_RSG
2 parents a443bc4 + a6c440d commit d514e75

43 files changed

Lines changed: 33082 additions & 27587 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

configs_dev/accessibility.csv

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,28 @@ Description,Target,Expression
33
#,, auto peak
44
#,,
55
#,, assume peak occurs in AM for outbound and PM for inbound
6-
peak round trip distance,_auPkTime,"skim_od[('SOVTOLL_TIME_M', 'AM')] + skim_do[('SOVTOLL_TIME_M', 'PM')]"
6+
peak round trip distance,_auPkTime,"skim_od[('sov_inc2t', 'AM')] + skim_do[('sov_inc2t', 'PM')]"
77
decay function,_decayauPk, exp(_auPkTime * dispersion_parameter_automobile)
88
auto peak retail,auPkRetail,df.RETEMPN * _decayauPk
99
auto peak total,auPkTotal,df.TOTEMP * _decayauPk
1010
#,,
1111
#,, auto off-peak
1212
#,,
1313
#,, assume midday occurs entirely in the midday period
14-
off-peak round trip distance,_auOpTime,"skim_od[('SOVTOLL_TIME_M', 'MD')] + skim_do[('SOVTOLL_TIME_M', 'MD')]"
14+
off-peak round trip distance,_auOpTime,"skim_od[('sov_inc2t', 'MD')] + skim_do[('sov_inc2t', 'MD')]"
1515
decay function,_decayauOp, exp(_auOpTime * dispersion_parameter_automobile)
1616
auto off-peak retail,auOpRetail,df.RETEMPN * _decayauOp
1717
auto off-peak total,auOpTotal,df.TOTEMP * _decayauOp
1818
#,,
1919
#,, transit peak
2020
#,,
2121
#,, assume peak outbound transit occurs in AM
22-
o-d peak transit ivt,_inVehicleTime,"skim_od[('WLK_TRN_WLK_IVT', 'AM')]"
23-
o-d peak transit ovt,_outOfVehicleTime,"skim_od[('WLK_TRN_WLK_TWAIT', 'AM')] + skim_od[('WLK_TRN_WLK_WAUX', 'AM')] "
22+
o-d peak transit ivt,_inVehicleTime,"skim_od[('ivtwa', 'AM')]"
23+
o-d peak transit ovt,_outOfVehicleTime,"skim_od[('twtwa', 'AM')] + skim_od[('auxwa', 'AM')] "
2424
o-d peak transit time,_trPkTime_od,(_inVehicleTime + out_of_vehicle_time_weight * _outOfVehicleTime)
2525
#,, assume peak inbound transit occurs in PM
26-
d-o peak transit ivt,_inVehicleTime,"skim_do[('WLK_TRN_WLK_IVT', 'PM')]"
27-
d-o peak transit ovt,_outOfVehicleTime,"skim_do[('WLK_TRN_WLK_TWAIT', 'PM')] + skim_do[('WLK_TRN_WLK_WAUX', 'PM')] "
26+
d-o peak transit ivt,_inVehicleTime,"skim_do[('ivtwa', 'PM')]"
27+
d-o peak transit ovt,_outOfVehicleTime,"skim_do[('twtwa', 'PM')] + skim_do[('auxwa', 'PM')] "
2828
d-o peak transit time,_trPkTime_do,(_inVehicleTime + out_of_vehicle_time_weight * _outOfVehicleTime)
2929
peak transit time,_trPkTime,_trPkTime_od + _trPkTime_do
3030
round trip path is available,_rt_available,(_trPkTime_od > 0) & (_trPkTime_do > 0)
@@ -35,12 +35,12 @@ transit peak total,trPkTotal,df.TOTEMP * _decaytrPk
3535
#,, transit off-peak
3636
#,,
3737
#,, assume off-peak outbound transit occurs in the MD time period
38-
o-d off-peak transit ivt,_inVehicleTime,"skim_od[('WLK_TRN_WLK_IVT', 'MD')]"
39-
o-d off-peak transit ovt,_outOfVehicleTime,"skim_od[('WLK_TRN_WLK_TWAIT', 'MD')] + skim_od[('WLK_TRN_WLK_WAUX', 'MD')] "
38+
o-d off-peak transit ivt,_inVehicleTime,"skim_od[('ivtwa', 'MD')]"
39+
o-d off-peak transit ovt,_outOfVehicleTime,"skim_od[('twtwa', 'MD')] + skim_od[('auxwa', 'MD')] "
4040
o-d off-peak transit time,_trOpTime_od,(_inVehicleTime + out_of_vehicle_time_weight * _outOfVehicleTime)
4141
#,, assume off-peak inbound transit occurs in the MD time period
42-
d-o off-peak transit ivt,_inVehicleTime,"skim_do[('WLK_TRN_WLK_IVT', 'MD')]"
43-
d-o off-peak transit ovt,_outOfVehicleTime,"skim_do[('WLK_TRN_WLK_TWAIT', 'MD')] + skim_do[('WLK_TRN_WLK_WAUX', 'MD')] "
42+
d-o off-peak transit ivt,_inVehicleTime,"skim_do[('ivtwa', 'MD')]"
43+
d-o off-peak transit ovt,_outOfVehicleTime,"skim_do[('twtwa', 'MD')] + skim_do[('auxwa', 'MD')] "
4444
d-o off-peak transit time,_trOpTime_do,(_inVehicleTime + out_of_vehicle_time_weight * _outOfVehicleTime)
4545
off-peak transit time,_trOpTime,_trOpTime_od + _trOpTime_do
4646
round trip path is available,_rt_available,(_trOpTime_od > 0) & (_trOpTime_do > 0)

configs_dev/annotate_persons_school.csv

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ Description,Target,Expression
22
#,, annotate persons table after school_location model has run
33
,distance_to_school,"np.where(persons.school_zone_id>=0,skim_dict.lookup(persons.home_zone_id, persons.school_zone_id, 'DIST'),np.nan)"
44
#,, this uses the free flow travel time in both directions. MTC TM1 was MD and MD
5-
temp auto_time_to_school,_auto_time_to_school,"skim_dict.lookup(persons.home_zone_id, persons.school_zone_id, ('SOV_TIME_M', 'MD'))"
6-
temp auto_time_return,_auto_time_return,"skim_dict.lookup(persons.school_zone_id, persons.home_zone_id, ('SOV_TIME_M', 'MD'))"
5+
temp auto_time_to_school,_auto_time_to_school,"skim_dict.lookup(persons.home_zone_id, persons.school_zone_id, ('sov_inc2t', 'MD'))"
6+
temp auto_time_return,_auto_time_return,"skim_dict.lookup(persons.school_zone_id, persons.home_zone_id, ('sov_inc2t', 'MD'))"
77
free flow roundtrip_auto_time_to_school,roundtrip_auto_time_to_school,"np.where(persons.school_zone_id>=0,_auto_time_to_school + _auto_time_return,0)"

configs_dev/annotate_persons_workplace.csv

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ workplace_in_cbd,workplace_in_cbd,"reindex(land_use.area_type, persons.workplace
55
work_zone_area_type,work_zone_area_type,"reindex(land_use.area_type, persons.workplace_zone_id)"
66
#,, auto time to work - free flow travel time in both directions. MTC TM1 was MD and MD
77
#,,roundtrip_auto_time_to_work
8-
,_auto_time_home_to_work,"skim_dict.lookup(persons.home_zone_id, persons.workplace_zone_id, ('SOV_TIME_M', 'MD'))"
9-
,_auto_time_work_to_home,"skim_dict.lookup(persons.workplace_zone_id, persons.home_zone_id, ('SOV_TIME_M', 'MD'))"
8+
,_auto_time_home_to_work,"skim_dict.lookup(persons.home_zone_id, persons.workplace_zone_id, ('sov_inc2t', 'MD'))"
9+
,_auto_time_work_to_home,"skim_dict.lookup(persons.workplace_zone_id, persons.home_zone_id, ('sov_inc2t', 'MD'))"
1010
,roundtrip_auto_time_to_work,"np.where(persons.workplace_zone_id>=0,_auto_time_home_to_work + _auto_time_work_to_home,0)"
1111
#,,_roundtrip_walk_time_to_work
1212
,_MAX_TIME_TO_WORK,999
@@ -16,11 +16,11 @@ work_zone_area_type,work_zone_area_type,"reindex(land_use.area_type, persons.wor
1616
,_work_walk_available,(_walk_time_home_to_work > 0) & (_walk_time_work_to_home > 0)
1717
,_roundtrip_walk_time_to_work,"np.where(_work_walk_available, _walk_time_home_to_work + _walk_time_work_to_home, _MAX_TIME_TO_WORK)"
1818
#,,_roundtrip_transit_time_to_work
19-
,_transit_ivt_home_to_work,"skim_dict.lookup(persons.home_zone_id, persons.workplace_zone_id, ('WLK_TRN_WLK_IVT', 'MD'))"
20-
,_transit_ivt_work_to_home,"skim_dict.lookup(persons.workplace_zone_id, persons.home_zone_id, ('WLK_TRN_WLK_IVT', 'MD'))"
19+
,_transit_ivt_home_to_work,"skim_dict.lookup(persons.home_zone_id, persons.workplace_zone_id, ('ivtwa', 'MD'))"
20+
,_transit_ivt_work_to_home,"skim_dict.lookup(persons.workplace_zone_id, persons.home_zone_id, ('ivtwa', 'MD'))"
2121
,_work_transit_available,(_transit_ivt_home_to_work > 0) & (_transit_ivt_work_to_home > 0)
22-
,_transit_total_wait,"skim_dict.lookup(persons.home_zone_id, persons.workplace_zone_id, ('WLK_TRN_WLK_TWAIT', 'MD')) + skim_dict.lookup(persons.workplace_zone_id, persons.home_zone_id, ('WLK_TRN_WLK_TWAIT', 'MD'))"
23-
,_transit_total_walk,"skim_dict.lookup(persons.home_zone_id, persons.workplace_zone_id, ('WLK_TRN_WLK_WAUX', 'MD')) + skim_dict.lookup(persons.workplace_zone_id, persons.home_zone_id, ('WLK_TRN_WLK_WAUX', 'MD'))"
22+
,_transit_total_wait,"skim_dict.lookup(persons.home_zone_id, persons.workplace_zone_id, ('twtwa', 'MD')) + skim_dict.lookup(persons.workplace_zone_id, persons.home_zone_id, ('twtwa', 'MD'))"
23+
,_transit_total_walk,"skim_dict.lookup(persons.home_zone_id, persons.workplace_zone_id, ('auxwa', 'MD')) + skim_dict.lookup(persons.workplace_zone_id, persons.home_zone_id, ('auxwa', 'MD'))"
2424
,_roundtrip_transit_time_to_work,_transit_ivt_home_to_work + _transit_ivt_work_to_home + _transit_total_wait + _transit_total_walk
2525
#,,work_auto_savings_ratio
2626
,_min_work_walk_transit,"np.where(_work_transit_available, np.minimum(_roundtrip_transit_time_to_work, _roundtrip_walk_time_to_work), _roundtrip_walk_time_to_work)"

configs_dev/constants.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@
1111
#HHT_NONFAMILY_FEMALE_ALONE: 6
1212
#HHT_NONFAMILY_FEMALE_NOTALONE: 7
1313

14+
# Occupancy
15+
OCC_SHARED2: 2
16+
OCC_SHARED3: 3.33
17+
OCC_TAXI: 1.1
18+
OCC_TNC_SINGLE: 1.2
19+
OCC_TNC_SHARED: 2.0
20+
1421
# convenience for expression files
1522
HHT_NONFAMILY: [4, 5, 6, 7]
1623
HHT_FAMILY: [1, 2, 3]

configs_dev/destination_choice_size_terms.csv

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ gradeschool,school,0,0,0,0,0,0,0,0,1,0,0,0
99
highschool,school,0,0,0,0,0,0,0,0,0,1,0,0
1010
escort,non_mandatory,0,0.225,0,0.144,0,0,0,0,0.465,0.166,0,0
1111
shopping,non_mandatory,0,1,0,0,0,0,0,0,0,0,0,0
12-
eatout,non_mandatory,0,0.742,0,0.258,0,0,0,0,0,0,0,0
12+
eatout,non_mandatory,0,0.22313016,0,0,0,0,0,1,0,0,0,0
1313
othmaint,non_mandatory,0,0.482,0,0.518,0,0,0,0,0,0,0,0
1414
social,non_mandatory,0,0.522,0,0.478,0,0,0,0,0,0,0,0
1515
othdiscr,non_mandatory,0.252252252,0.212212212,0,0.272272272,0.165165165,0,0,0,0,0.098098098,0,0
1616
atwork,atwork,0,0.742,0,0.258,0,0,0,0,0,0,0,0
1717
work,trip,0,0.166666667,0.166666667,0.166666667,0.166666667,0.166666667,0.166666667,0,0,0,0,0
1818
escort,trip,0.001,0.225,0,0.144,0,0,0,0,0.464,0.166,0,0
1919
shopping,trip,0.001,0.999,0,0,0,0,0,0,0,0,0,0
20-
eatout,trip,0,0.742,0,0.258,0,0,0,0,0,0,0,0
20+
eatout,trip,0,0.22313016,0,0,0,0,0,1,0,0,0,0
2121
othmaint,trip,0.001,0.481,0,0.518,0,0,0,0,0,0,0,0
2222
social,trip,0.001,0.521,0,0.478,0,0,0,0,0,0,0,0
2323
othdiscr,trip,0.252252252,0.212212212,0,0.272272272,0.165165165,0,0,0,0,0.098098098,0,0
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Description,Target,Expression
22
destination in central business district,destination_in_cbd,"(reindex(land_use.area_type, joint_tours.destination) < setting('cbd_threshold')) * 1"
33
#,, this uses the free flow travel time in both directions. MTC TM1 was MD and MD
4-
temp auto_time_to_destination,_auto_time_to_destination,"skim_dict.lookup(joint_tours.origin, joint_tours.destination, ('SOV_TIME_M', 'MD'))"
5-
temp auto_time_return,_auto_time_return,"skim_dict.lookup(joint_tours.destination, joint_tours.origin, ('SOV_TIME_M', 'MD'))"
4+
temp auto_time_to_destination,_auto_time_to_destination,"skim_dict.lookup(joint_tours.origin, joint_tours.destination, ('sov_inc2t', 'MD'))"
5+
temp auto_time_return,_auto_time_return,"skim_dict.lookup(joint_tours.destination, joint_tours.origin, ('sov_inc2t', 'MD'))"
66
free flow roundtrip_auto_time,roundtrip_auto_time,"_auto_time_to_destination + _auto_time_return"
77
#"number of joint tours that this joint tours point_person participates in",,
88
,num_person_joint_tours,"reindex_i(joint_tour_participants.groupby('person_id').size(), joint_tours.person_id)"

configs_dev/network_los.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ zone_system: 2
99

1010
# glob 'skims*.omx' will match one or more files: skims.omx, skims1.omx, skims2.omx...
1111
taz_skims:
12-
omx: skims*.omx
13-
zarr: skims.zarr
12+
omx: Skims*.omx
13+
#zarr: skims.zarr
1414

1515

1616
maz: maz.csv

configs_dev/settings.yaml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22
#sharrow: require
33

44
# activitysim run -c configs -d data -o output
5-
5+
expression_profile: True
66

77
# number of households to simulate
8-
#households_sample_size: 100
9-
# simulate all households
108
households_sample_size: 0
119
disable_zarr: True
1210
#chunk_size:
@@ -30,7 +28,8 @@ want_dest_choice_sample_tables: False
3028

3129
# trace household id; comment out or leave empty for no trace
3230
# households with all tour types
33-
#trace_hh_id: 251535
31+
trace_hh_id: 562656
32+
cleanup_trace_files_on_resume: True
3433

3534

3635
# trace origin, destination in accessibility calculation; comment out or leave empty for no trace
@@ -46,7 +45,6 @@ input_table_list:
4645
HHID: household_id
4746
PERSONS: hhsize
4847
workers: num_workers
49-
VEHICL: auto_ownership
5048
MAZ: home_zone_id
5149
recode_columns:
5250
home_zone_id: land_use.zone_id
@@ -118,8 +116,7 @@ input_table_list:
118116
recode_columns:
119117
TAZ: zero-based
120118
# to resume after last successful checkpoint, specify resume_after: _
121-
#resume_after: trip_scheduling
122-
119+
#resume_after: auto_ownership_simulate
123120
models:
124121
## Disaggregate Accessibility steps
125122
- initialize_proto_population # Separate step so proto tables can be split for multiprocess.
@@ -158,7 +155,7 @@ models:
158155
- trip_mode_choice
159156
- write_data_dictionary
160157
- track_skim_usage
161-
# - write_trip_matrices
158+
- write_trip_matrices
162159
- write_tables
163160

164161

0 commit comments

Comments
 (0)