Skip to content

Commit f97b283

Browse files
michaelosthegeOriolAbril
authored andcommitted
Use initial instead of testval internally
Co-authored-by: Oriol Abril-Pla <[email protected]>
1 parent 65f4f2b commit f97b283

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: pymc3/distributions/distribution.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,9 @@ def __new__(
202202
)
203203
dims = convert_dims(dims)
204204

205-
# Create the RV without specifying testval, because the testval may have a shape
205+
# Create the RV without specifying initval, because the initval may have a shape
206206
# that only matches after replicating with a size implied by dims (see below).
207-
rv_out = cls.dist(*args, rng=rng, testval=None, **kwargs)
207+
rv_out = cls.dist(*args, rng=rng, initval=None, **kwargs)
208208
ndim_actual = rv_out.ndim
209209
resize_shape = None
210210

0 commit comments

Comments
 (0)