Skip to content

Commit f67b50f

Browse files
author
Christopher Fonnesbeck
committed
A few test fixes
1 parent 551cdde commit f67b50f

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ python:
33
- "2.7"
44
before_install:
55
- sudo apt-get install liblapack-dev gfortran python-scipy libblas-dev libsuitesparse-dev swig
6-
install:
6+
install:
77
- pip install git+https://github.com/numpy/numpy.git
88
- pip install scipy
99
- pip install matplotlib
@@ -13,5 +13,5 @@ install:
1313
- pip install Cython
1414
- pip install scikits.sparse
1515
- python setup.py build_ext --inplace
16-
script:
17-
- nosetests -s tests/
16+
script:
17+
- nosetests -s pymc/tests/

pymc/tests/test_step.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ def test_step_continuous():
2323

2424
for st in steps:
2525
np.random.seed(1)
26-
h = sample(8000, st, start, model = model)
26+
h = sample(8000, st, start, track_progress=False, model = model)
2727
for (var, stat, val, bound) in check:
2828
np.random.seed(1)
29-
h = sample(8000, st, start, model = model)
29+
h = sample(8000, st, start, track_progess=False, model = model)
30+
31+
yield check_stat,repr(st), h, var, stat, val, bound
3032

31-
yield check_stat,repr(st), h, var, stat, val, bound
3233

3334

3435

35-
3636

pymc/tests/test_trace.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
def check_trace(model, trace, n, step, start):
1414
#try using a trace object a few times
1515
for i in range(2):
16-
trace = sample(n, step, start, trace, model = model)
16+
trace = sample(n, step, start, trace, track_progress=False, model = model)
1717

1818
for (var, val) in start.iteritems():
1919

@@ -23,11 +23,11 @@ def check_trace(model, trace, n, step, start):
2323
def test_trace():
2424
model, start, step,_ = simple_init()
2525

26-
for h in [pm.NpTrace]:
26+
for h in [pm.NpTrace]:
2727
for n in [20, 1000]:
2828
for vars in [model.vars, model.vars + [model.vars[0]**2]]:
2929
trace = h(vars)
30-
30+
3131

3232
yield check_trace, model, trace, n, step, start
3333

@@ -45,8 +45,8 @@ def test_multitrace():
4545
def check_multi_trace(model, trace, n, step, start):
4646

4747
for i in range(2):
48-
trace = psample(n, step, start, trace, model = model)
49-
48+
trace = psample(n, step, start, trace, track_progress=False, model = model)
49+
5050

5151
for (var, val) in start.iteritems():
5252
print [len(tr.samples[var].vals) for tr in trace.traces]
@@ -68,7 +68,7 @@ def test_get_point():
6868
x = pm.NpTrace(model.vars)
6969
x.record(p)
7070
x.record(p2)
71-
assert x.point(1) == x[1]
71+
assert x.point(1) == x[1]
7272

7373

7474

0 commit comments

Comments
 (0)