When converting between time intervals and time-period labels, ActivitySim includes a hard-coded slicing process that assumes one-hour time intervals. The Atlanta model implementation is 30-minute time intervals.
| # FIXME - eventually test and use np version always? |
| ifnp.isscalar(time): |
| bin=np.digitize([time%24], skim_time_periods['hours'])[0] -1 |
| returnskim_time_periods['labels'][bin] |
| |
| returnpd.cut(time, skim_time_periods['hours'], labels=skim_time_periods['labels']).astype(str) |
When converting between time intervals and time-period labels, ActivitySim includes a hard-coded slicing process that assumes one-hour time intervals. The Atlanta model implementation is 30-minute time intervals.
activitysim/activitysim/abm/models/util/expressions.py
Lines 183 to 188 in 7b57c94