Skip to content

Commit

Permalink
allow duplicate time labels
Browse files Browse the repository at this point in the history
  • Loading branch information
Clint Daniels committed Nov 11, 2020
1 parent 003742b commit 1a5a264
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion activitysim/abm/models/util/expressions.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def skim_time_period_label(time_period):
return skim_time_periods['labels'][bin]

return pd.cut(time_period, skim_time_periods[period_label],
labels=skim_time_periods['labels'], right=True).astype(str)
labels=skim_time_periods['labels'], ordered=False).astype(str)


def annotate_preprocessors(
Expand Down
2 changes: 2 additions & 0 deletions activitysim/examples/example_mtc/configs/settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -175,12 +175,14 @@ skim_time_periods:
period_minutes: 60
periods:
- 0
- 3
- 6
- 11
- 16
- 20
- 24
labels:
- EA
- EA
- AM
- MD
Expand Down

0 comments on commit 1a5a264

Please sign in to comment.