From dddf34f4d5ecd9335b1ee2ace38c7acf372adbdf Mon Sep 17 00:00:00 2001 From: Sijia Wang Date: Tue, 27 Feb 2024 11:30:35 -0500 Subject: [PATCH] blacken --- activitysim/core/skim_dictionary.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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