We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b206ebd commit 9b3a047Copy full SHA for 9b3a047
1 file changed
src/emcee/tests/integration/test_longdouble.py
@@ -9,6 +9,7 @@ def test_longdouble_doesnt_crash_bug_312():
9
def log_prob(x, ivar):
10
return -0.5 * np.sum(ivar * x**2)
11
12
+ np.random.seed(0)
13
ndim, nwalkers = 5, 20
14
ivar = 1.0 / np.random.rand(ndim).astype(np.longdouble)
15
p0 = np.random.randn(nwalkers, ndim).astype(np.longdouble)
@@ -29,6 +30,7 @@ def log_prob(x):
29
30
assert x.dtype == np.longdouble
31
return -0.5 * np.sum(((x - mjd) / sigma) ** 2)
32
33
34
ndim, nwalkers = 1, 20
35
steps = 1000
36
p0 = sigma * np.random.randn(nwalkers, ndim).astype(np.longdouble) + mjd
0 commit comments