Skip to content

Commit fabc8ad

Browse files
committed
Remove unnecessary comment and fix spacing
1 parent 2c9dd6b commit fabc8ad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pymc/distributions/timeseries.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ def rng_fn(
102102
init_size = 1
103103
steps_size = steps
104104

105-
# TODO: Ask Ricardo how size is known to be a tuple? Its int above
106105
# If size is None then the returned series should be (size, 1+steps)
107106
else:
108107
init_size = (*size, 1)
@@ -173,13 +172,15 @@ def dist(
173172
and init.owner.op.ndim_supp == 0
174173
):
175174
raise TypeError("init must be a scalar distribution variable")
175+
176176
if size is not None or shape is not None:
177177
init = change_rv_size(init, to_tuple(size or shape))
178178
else:
179179
# If not explicit, size is determined by the shape of mu and sigma
180180
mu_ = at.broadcast_arrays(mu, sigma)[0]
181181
init = change_rv_size(init, mu_.shape)
182182

183+
# Ignores logprob of init var because that's captured somewhere else
183184
init.tag.ignore_logprob = True
184185

185186
return super().dist([mu, sigma, init, steps], size=size, **kwargs)

0 commit comments

Comments
 (0)