Skip to content

Commit 7999a58

Browse files
committed
Ignore np.log(np.nan)
This happens when initialising. Since it results in NaN anyway, we should be able to detect other errors downstream.
1 parent b313ecd commit 7999a58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tsdate/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def force_probability_space(self, probability_space):
125125
if self.probability_space == LOG:
126126
pass
127127
elif self.probability_space == LIN:
128-
with np.errstate(divide="ignore"):
128+
with np.errstate(divide="ignore", invalid="ignore"):
129129
self.grid_data = np.log(self.grid_data)
130130
self.fixed_data = np.log(self.fixed_data)
131131
self.probability_space = LOG

0 commit comments

Comments
 (0)