Skip to content

Commit

Permalink
blacken
Browse files Browse the repository at this point in the history
  • Loading branch information
i-am-sijia committed Feb 27, 2024
1 parent 88043d4 commit dddf34f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions activitysim/core/skim_dictionary.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,17 @@ def __init__(self, state, skim_tag, skim_info, skim_data):

try:
self.time_label_dtype = pd.api.types.CategoricalDtype(
list(OrderedDict.fromkeys(state.network_settings.skim_time_periods.labels)),
list(
OrderedDict.fromkeys(
state.network_settings.skim_time_periods.labels
)
),
ordered=True,
)
except StateAccessError:
logger.info(f"Cannot access state.network_settings.skim_time_periods.labels. SkimDict.time_label_dtype is not set")
logger.info(
f"Cannot access state.network_settings.skim_time_periods.labels. SkimDict.time_label_dtype is not set"
)

self.offset_mapper = self._offset_mapper(
state
Expand Down

0 comments on commit dddf34f

Please sign in to comment.