Skip to content

Commit 6e02dbc

Browse files
author
Junpeng Lao
committed
latex fix for Flat and HalfFLat
missing {}
1 parent fafc732 commit 6e02dbc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pymc3/distributions/continuous.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def logp(self, value):
201201
return tt.zeros_like(value)
202202

203203
def _repr_latex_(self, name=None, dist=None):
204-
return r'${} \sim \text{Flat}()$'.format(name)
204+
return r'${} \sim \text{{Flat}}()$'.format(name)
205205

206206

207207
class HalfFlat(PositiveContinuous):
@@ -218,7 +218,7 @@ def logp(self, value):
218218
return bound(tt.zeros_like(value), value > 0)
219219

220220
def _repr_latex_(self, name=None, dist=None):
221-
return r'${} \sim \text{{HalfFlat}()$'.format(name)
221+
return r'${} \sim \text{{HalfFlat}}()$'.format(name)
222222

223223

224224
class Normal(Continuous):

0 commit comments

Comments
 (0)