Skip to content

Commit 7f5a165

Browse files
committed
Fixed indentation bug in StudentT _repr_latex_
1 parent 02babc0 commit 7f5a165

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

pymc3/distributions/continuous.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -781,17 +781,17 @@ def logp(self, value):
781781
- (nu + 1.0) / 2.0 * tt.log1p(lam * (value - mu)**2 / nu),
782782
lam > 0, nu > 0, sd > 0)
783783

784-
def _repr_latex_(self, name=None, dist=None):
785-
if dist is None:
786-
dist = self
787-
nu = dist.nu
788-
mu = dist.mu
789-
lam = dist.lam
790-
return r'$%s \sim \text{StudentT}(\mathit{nu}=%s, \mathit{mu}=%s, \mathit{lam}=%s)$' % (name,
791-
get_variable_name(nu),
792-
get_variable_name(mu),
793-
get_variable_name(lam))
794-
784+
def _repr_latex_(self, name=None, dist=None):
785+
if dist is None:
786+
dist = self
787+
nu = dist.nu
788+
mu = dist.mu
789+
lam = dist.lam
790+
return r'$%s \sim \text{StudentT}(\mathit{nu}=%s, \mathit{mu}=%s, \mathit{lam}=%s)$' % (name,
791+
get_variable_name(nu),
792+
get_variable_name(mu),
793+
get_variable_name(lam))
794+
795795

796796
class Pareto(PositiveContinuous):
797797
R"""

0 commit comments

Comments
 (0)