-
Notifications
You must be signed in to change notification settings - Fork 118
Closed
Milestone
Description
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
| # FIXME - eventually test and use np version always? | |
| if np.isscalar(time): | |
| bin = np.digitize([time % 24], skim_time_periods['hours'])[0] - 1 | |
| return skim_time_periods['labels'][bin] | |
| return pd.cut(time, skim_time_periods['hours'], labels=skim_time_periods['labels']).astype(str) |
Metadata
Metadata
Assignees
Labels
No labels