dump_fix data that not in calendar_list, throw error:
```
NaT is not in list
```
This commit is contained in:
lerit 2022-11-04 21:15:23 +08:00 коммит произвёл GitHub
Родитель 67d618d4b2
Коммит 2fae407b19
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -219,6 +219,9 @@ class DumpDataBase:
return
# align index
_df = self.data_merge_calendar(df, calendar_list)
if _df.empty:
logger.warning(f"{features_dir.name} data is not in calendars")
return
# used when creating a bin file
date_index = self.get_datetime_index(_df, calendar_list)
for field in self.get_dump_fields(_df.columns):