Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
rileyjmurray committed Apr 13, 2021
1 parent 7f04695 commit 9164fe3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sageopt/symbolic/polynomials.py
Expand Up @@ -340,7 +340,7 @@ def __call__(self, x):
temp1 = np.power(x, self.alpha)
temp2 = np.prod(temp1, axis=1)
temp3 = self.c * temp2
if temp3.dtype in __NUMERIC_TYPES__:
if temp3.dtype is not object:
val = np.sum(temp3)
return val
else:
Expand Down

0 comments on commit 9164fe3

Please sign in to comment.