Skip to content

Commit 915adcf

Browse files
Apply suggestions from Ricardo's review
Co-authored-by: Ricardo Vieira <[email protected]>
1 parent eef3119 commit 915adcf

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

pymc3/distributions/multivariate.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1401,7 +1401,12 @@ def logp(self, x):
14011401
result = _lkj_normalizing_constant(eta, n)
14021402
result += (eta - 1.0) * at.log(det(X))
14031403
return bound(
1404-
result, X >= -1, X <= 1, matrix_pos_def(X), eta > 0, broadcast_conditions=False
1404+
result,
1405+
X >= -1,
1406+
X <= 1,
1407+
matrix_pos_def(X),
1408+
eta > 0,
1409+
broadcast_conditions=False,
14051410
)
14061411

14071412
def _distr_parameters_for_repr(self):

pymc3/tests/test_distributions.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,10 @@ def __mul__(self, other):
167167
)
168168
except TypeError:
169169
return Domain(
170-
[v * other for v in self.vals], self.dtype, (self.lower, self.upper), self.shape
170+
[v * other for v in self.vals],
171+
self.dtype,
172+
(self.lower, self.upper),
173+
self.shape,
171174
)
172175

173176
def __neg__(self):

0 commit comments

Comments
 (0)