zhouhaoyi / Informer2020

The GitHub repository for the paper "Informer" accepted by AAAI 2021.
Apache License 2.0
5.4k stars 1.12k forks source link

fix TypeError: 'NoneType' object is not subscriptable in issue 448 #532

Open Harold-y opened 1 year ago

Harold-y commented 1 year ago

Added a condition trying to avoid the problem described in issue 448 (https://github.com/zhouhaoyi/Informer2020/issues/448) (TypeError: 'NoneType' object is not subscriptable). The problem occurred because of the self.freq is None and the original code was trying to index into the None type.