Skip to content

Commit 2cd14ab

Browse files
author
Tom Gilliss
committed
removed upper positional arg from test_truncated_normal_lower and vice versa
1 parent 3e1dcf6 commit 2cd14ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pymc3/tests/test_distributions_random.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,13 +483,13 @@ def ref_rand(size, mu, sigma, lower, upper):
483483
ref_rand=ref_rand)
484484

485485
def test_truncated_normal_lower(self):
486-
def ref_rand(size, mu, sigma, lower, upper):
486+
def ref_rand(size, mu, sigma, lower):
487487
return st.truncnorm.rvs((lower-mu)/sigma, np.inf, size=size, loc=mu, scale=sigma)
488488
pymc3_random(pm.TruncatedNormal, {'mu': R, 'sigma': Rplusbig, 'lower':-Rplusbig},
489489
ref_rand=ref_rand)
490490

491491
def test_truncated_normal_upper(self):
492-
def ref_rand(size, mu, sigma, lower, upper):
492+
def ref_rand(size, mu, sigma, upper):
493493
return st.truncnorm.rvs(-np.inf, (upper-mu)/sigma, size=size, loc=mu, scale=sigma)
494494
pymc3_random(pm.TruncatedNormal, {'mu': R, 'sigma': Rplusbig, 'upper':Rplusbig},
495495
ref_rand=ref_rand)

0 commit comments

Comments
 (0)