Skip to content

Commit d7eb3ae

Browse files
committed
Ignore divisions by 0
1 parent 0a4da02 commit d7eb3ae

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
@@ -119,7 +119,7 @@ def force_probability_space(self, probability_space):
119119
if self.probability_space == LOG:
120120
pass
121121
elif self.probability_space == LIN:
122-
with np.errstate(divide="ignore"):
122+
with np.errstate(divide="ignore", invalid="ignore"):
123123
self.grid_data = np.log(self.grid_data)
124124
self.fixed_data = np.log(self.fixed_data)
125125
self.probability_space = LOG

0 commit comments

Comments
 (0)