Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathf committed May 18, 2024
1 parent 7facef6 commit ab0963d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion chaospy/descriptives/conditional.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ def E_cond(poly, freeze, dist, **kws):
if not freeze.isconstant():
poly, freeze = numpoly.align_indeterminants(poly, freeze)
poly, freeze = numpoly.align_exponents(poly, freeze)
freeze = freeze.exponents[numpy.array(freeze.coefficients, dtype=bool)].flatten()
freeze = freeze.exponents[
numpy.array(freeze.coefficients, dtype=bool)
].flatten()

else:
freeze = freeze.tonumpy()
Expand Down
2 changes: 1 addition & 1 deletion chaospy/distributions/sampler/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def generate_samples(order, domain=1, rule="random", antithetic=None):
order_saved = order
order = int(numpy.log(order - dim))
order = order if order > 1 else 1
while (order - 1) * 2**(dim - 1) < order_saved:
while (order - 1) * 2 ** (dim - 1) < order_saved:
order += 1
trans_ = trans
trans = lambda x_data: trans_(
Expand Down

0 comments on commit ab0963d

Please sign in to comment.