Skip to content

Commit 8fdeaf2

Browse files
committed
Run pre-commit
1 parent 47f9498 commit 8fdeaf2

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

pymc3/tests/test_math.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@
1515
import numpy as np
1616
import numpy.testing as npt
1717
import pytest
18-
from scipy.special import logsumexp as scipy_logsumexp
1918
import theano
2019
import theano.tensor as tt
2120

21+
from scipy.special import logsumexp as scipy_logsumexp
22+
2223
from pymc3.math import (
2324
LogDet,
2425
cartesian,
@@ -31,8 +32,8 @@
3132
log1mexp_numpy,
3233
log1pexp,
3334
logdet,
34-
probit,
3535
logsumexp,
36+
probit,
3637
)
3738
from pymc3.tests.helpers import SeededTest, verify_grad
3839
from pymc3.theanof import floatX
@@ -226,10 +227,10 @@ def test_expand_packed_triangular():
226227
(np.array([[-np.inf, -np.inf], [-np.inf, -np.inf]]), 0, False),
227228
(np.array([[-np.inf, -np.inf], [-np.inf, -np.inf]]), 1, False),
228229
(np.array([[-2, np.inf], [-np.inf, -np.inf]]), 0, True),
229-
]
230+
],
230231
)
231232
def test_logsumexp(values, axis, keepdims):
232233
npt.assert_almost_equal(
233234
logsumexp(values, axis=axis, keepdims=keepdims).eval(),
234-
scipy_logsumexp(values, axis=axis, keepdims=keepdims)
235+
scipy_logsumexp(values, axis=axis, keepdims=keepdims),
235236
)

0 commit comments

Comments
 (0)