diff --git a/activitysim/core/skim_dictionary.py b/activitysim/core/skim_dictionary.py index 7494e11fe..caafd08e6 100644 --- a/activitysim/core/skim_dictionary.py +++ b/activitysim/core/skim_dictionary.py @@ -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