Skip to content

Commit 7b57c94

Browse files
authored
Merge pull request #270 from ActivitySim/develop
prettier expression rendering
2 parents 09c3a9e + 1df5866 commit 7b57c94

10 files changed

+14
-14
lines changed

example/configs/accessibility.csv

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Description,Target,Expression
22
#,,
33
#,, auto peak
44
#,,
5-
# assume peak occurs in AM for outbound and PM for inbound
5+
#,, assume peak occurs in AM for outbound and PM for inbound
66
peak round trip distance,_auPkTime,"skim_od[('SOVTOLL_TIME', 'AM')] + skim_do[('SOVTOLL_TIME', 'PM')]"
77
decay function,_decay, exp(_auPkTime * dispersion_parameter_automobile)
88
auto peak retail,auPkRetail,df.RETEMPN * _decay
@@ -43,7 +43,7 @@ d-o off-peak transit ivt,_inVehicleTime,"skim_do[('WLK_TRN_WLK_IVT', 'MD')]"
4343
d-o off-peak transit ovt,_outOfVehicleTime,"skim_do[('WLK_TRN_WLK_IWAIT', 'MD')] + skim_do[('WLK_TRN_WLK_XWAIT', 'MD')] + skim_do[('WLK_TRN_WLK_WACC', 'MD')] + skim_do[('WLK_TRN_WLK_WAUX', 'MD')] + skim_do[('WLK_TRN_WLK_WEGR', 'MD')]"
4444
d-o off-peak transit time,_trOpTime_do,(_inVehicleTime + out_of_vehicle_time_weight * _outOfVehicleTime) / 100.0
4545
peak transit time,_trOpTime,_trOpTime_od + _trOpTime_do
46-
# FIXME - _rt_available calculation appears to be wrong in mtctm1 accessibility.job
46+
#,,FIXME - _rt_available calculation appears to be wrong in mtctm1 accessibility.job
4747
#round trip path is available,_rt_available,(_trOpTime > 0)
4848
round trip path is available,_rt_available,(_trOpTime_od > 0) & (_trOpTime_do > 0)
4949
decay function,_decay,_rt_available * exp(_trOpTime * dispersion_parameter_transit)

example/configs/atwork_subtour_frequency_alternatives.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# alt file for building tours even though simulation is simple_simulate not interaction_simulate
1+
#,,,alt file for building tours even though simulation is simple_simulate not interaction_simulate
22
alt,eat,business,maint
33
no_subtours,0,0,0
44
eat,1,0,0

example/configs/auto_ownership.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ Marin county,@df.county_id == ID_MARIN,,-0.2434,0,0,0
2727
"Retail accessibility (0.66*PK + 0.34*OP) by transit, if 1+ workers",(num_workers>0)*(0.66*trPkRetail+0.34*trOpRetail),,-0.5117,-0.5117,-0.5117,-0.5117
2828
"Retail accessibility by non-motorized, if 0 workers",(num_workers==0)*nmRetail,,-0.03,-0.03,-0.03,-0.03
2929
"Retail accessibility by non-motorized, if 1+ workers",(num_workers>0)*nmRetail,,-0.03,-0.03,-0.03,-0.03
30-
Auto time savings per worker to work","@np.where(df.num_workers > 0, df.hh_work_auto_savings_ratio / df.num_workers, 0)",,0.4707,0.6142,0.5705,0.7693
30+
Auto time savings per worker to work,"@np.where(df.num_workers > 0, df.hh_work_auto_savings_ratio / df.num_workers, 0)",,0.4707,0.6142,0.5705,0.7693

example/configs/joint_tour_composition.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Description,Expression,adults,children,mixed
22
Alternative-specific constant,1,,5.3517,5.6290
33
Joint tour purpose is eating out (dummy),tour_type=='eat',,-0.9678,-0.8027
4-
Joint tour purpose is discretionary (dummy),tour_type=='disc',0.7648,0.5101
4+
Joint tour purpose is discretionary (dummy),tour_type=='disc',0.7648,0.5101,
55
Number of Full-Time Workers in the household,num_full_max3,1.0240,,0.3624
66
Number of Part-Time Workers in the household,num_part_max3,0.5412,,0.3164
77
Number of University students in the household,num_univ_max3,0.8245,,

example/configs/joint_tour_frequency_alternatives.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# alt file for building joint tours
1+
#,,,,,alt file for building joint tours
22
alt,shopping,othmaint,eatout,social,othdiscr
33
0_tours,0,0,0,0,0
44
1_Shop,1,0,0,0,0

example/configs/joint_tour_participation.csv

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ Description,Expression,participate,not_participate
4848
"Adult, number of joint tours, mixed",(adult & tour_composition_is_mixed) * num_hh_joint_tours,-0.3584,
4949
"Child, number of joint tours, child only",(~adult & tour_composition_is_children) * num_hh_joint_tours,0.1047,
5050
"Child, number of joint tours, mixed",(~adult & tour_composition_is_mixed) * num_hh_joint_tours,-0.5089,
51-
"Adult, number of other adults in the household, adults-only party",(adult & tour_composition_is_adults) * (num_adults - 1)
52-
"Adult, number of other adults in the household, mixed party",(adult & tour_composition_is_mixed) * (num_adults - 1)
53-
"Child, number of other children in the household, child-only party",(~adult & tour_composition_is_children) * (num_children - 1)
54-
"Child, number of other children in the household, mixed",(~adult & tour_composition_is_mixed) * (num_children - 1)
51+
"Adult, number of other adults in the household, adults-only party",(adult & tour_composition_is_adults) * (num_adults - 1),,
52+
"Adult, number of other adults in the household, mixed party",(adult & tour_composition_is_mixed) * (num_adults - 1),,
53+
"Child, number of other children in the household, child-only party",(~adult & tour_composition_is_children) * (num_children - 1),,
54+
"Child, number of other children in the household, mixed",(~adult & tour_composition_is_mixed) * (num_children - 1),,
5555
#,,,
5656
"Adult, log of max window overlap with an adult, adult-only party",(adult & tour_composition_is_adults) * log_time_window_overlap_adult,0.8436,
5757
"Adult, log of max window overlap with a child, mixed",(adult & tour_composition_is_mixed) * log_time_window_overlap_adult,2.189,

example/configs/joint_tour_scheduling_annotate_tours_preprocessor.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ local scalar distance skim,_SOVMD_SKIM,"skim_dict.get(('SOV_TIME', 'MD'))"
55
temp auto_time_to_destination,_auto_time_to_destination,"_SOVMD_SKIM.get(joint_tours.origin, joint_tours.destination)"
66
temp auto_time_return,_auto_time_return,"_SOVMD_SKIM.get(joint_tours.destination, joint_tours.origin)"
77
free flow roundtrip_auto_time,roundtrip_auto_time,"_auto_time_to_destination + _auto_time_return"
8-
#"number of joint tours that this joint tour's point_person participates in",,
8+
#"number of joint tours that this joint tours point_person participates in",,
99
,num_person_joint_tours,"reindex_i(joint_tour_participants.groupby('person_id').size(), joint_tours.person_id)"

example/configs/mandatory_tour_frequency_alternatives.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# alt file for building tours even though simulation is simple_simulate not interaction_simulate
1+
#,,alt file for building tours even though simulation is simple_simulate not interaction_simulate
22
alt,work,school
33
work1,1,0
44
work2,2,0

example/configs/stop_frequency_alternatives.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# alt file for building tours even though simulation is simple_simulate not interaction_simulate
1+
#,,alt file for building tours even though simulation is simple_simulate not interaction_simulate
22
alt,out,in
33
0out_0in,0,0
44
0out_1in,0,1

example/configs/trip_purpose_probs.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ atwork,True,5,23,PTYPE_FULL,0.206,0,0,0.122,0.166,0.247,0.241,0.004,0.014
6464
atwork,True,5,23,PTYPE_PART,0.206,0,0,0.122,0.166,0.247,0.241,0.004,0.014
6565
atwork,True,5,23,PTYPE_UNIVERSITY,0.206,0,0,0.122,0.166,0.247,0.241,0.004,0.014
6666
atwork,True,5,23,PTYPE_DRIVING,0.206,0,0,0.122,0.166,0.247,0.241,0.004,0.014
67-
#
67+
#,,,,,,,,,,,,,
6868
work,False,5,14,PTYPE_FULL,0.175,0,0,0.14,0.27,0.162,0.134,0.05,0.069
6969
work,False,5,14,PTYPE_PART,0.097,0,0,0.252,0.211,0.192,0.159,0.089,0
7070
work,False,5,14,PTYPE_UNIVERSITY,0.134,0,0,0.329,0.114,0.212,0.169,0.042,0

0 commit comments

Comments
 (0)