We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0826879 commit d631b44Copy full SHA for d631b44
1 file changed
qlib/data/filter.py
@@ -168,7 +168,7 @@ def _toTimestamp(self, timestamp_series):
168
for _ts, _bool in timestamp_series.items():
169
# there is likely to be NAN when the filter series don't have the
170
# bool value, so we just change the NAN into False
171
- if _bool == np.nan:
+ if np.isnan(_bool):
172
_bool = False
173
if _lbool is None:
174
_cur_start = _ts
0 commit comments