Skip to content

Commit

Permalink
Merge pull request #101 from SCIInstitute/compare_booleans_correctly
Browse files Browse the repository at this point in the history
Fixed boolean comparisons
  • Loading branch information
akilnarayan committed Mar 5, 2022
2 parents e16b0ad + 23e1b2f commit 1bef8bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UncertainSCI/distributions.py
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ def _detect_dimension(self, alpha, beta, dim, domain):
self.alpha = [alpha[0] for i in range(self.dim)]
self.beta = [beta[0] for i in range(self.dim)]

if (domain is None) or (domain.any() is not True): # Standard domain [0,1]^dim
if (domain is None) or (not domain.any()): # Standard domain [0,1]^dim
self.domain = np.zeros([2, self.dim])
self.domain[1, :] = 1.
else:
Expand Down

0 comments on commit 1bef8bd

Please sign in to comment.