Skip to content

Commit

Permalink
update limited_space
Browse files Browse the repository at this point in the history
  • Loading branch information
Servon committed Sep 10, 2020
1 parent dd4c2e5 commit 010e56c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions zoopt/dimension.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,9 +369,7 @@ def limited_space(self):
number = 1
for i in range(self._size):
if self._types[i] == ValueType.CONTINUOUS:
number *= (self._regions[i][1] - self._regions[i][0]) / self._order_or_precision[i]
if number == np.inf:
return False, 0
return False, 0
elif self._types[i] == ValueType.GRID:
number *= len(self._regions[i])
else:
Expand Down

0 comments on commit 010e56c

Please sign in to comment.