Skip to content

Hard Coded Specification - One-Hour Time Intervals #274

Description

@danielsclint

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?
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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions