Skip to content

Commit

Permalink
last fix didnt do what it was supposed to
Browse files Browse the repository at this point in the history
  • Loading branch information
rileyjmurray committed Apr 13, 2021
1 parent 9164fe3 commit 189550d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sageopt/symbolic/polynomials.py
Original file line number Diff line number Diff line change
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 is not object:
if temp3.dtype != 'object':
val = np.sum(temp3)
return val
else:
Expand Down

0 comments on commit 189550d

Please sign in to comment.