Skip to content

Commit 010dc2c

Browse files
committed
Fix AR test for numpy 1.16
1 parent 6e12e5d commit 010dc2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymc3/tests/test_distributions_timeseries.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def test_AR():
2727

2828
# AR1 + constant
2929
with Model() as t:
30-
y = AR('y', [0.3, phi], sigma=1, shape=len(data), constant=True)
30+
y = AR('y', np.hstack((0.3, phi)), sigma=1, shape=len(data), constant=True)
3131
z = Normal('z', mu=0.3 + phi*data[:-1], sigma=1, shape=len(data)-1)
3232
ar_like = t['y'].logp({'z':data[1:], 'y': data})
3333
reg_like = t['z'].logp({'z':data[1:], 'y': data})

0 commit comments

Comments
 (0)