Skip to content

Commit 21a0fae

Browse files
committed
DOC: don't test uninteresting doctest
It was failing due to sympy printing, and it's not testing nipy code.
1 parent 4f5033c commit 21a0fae

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

doc/users/glm_spec.rst

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -275,17 +275,13 @@ the same :math:`f` above), but the different experimental model :math:`E` yields
275275

276276
.. testcode::
277277

278-
from sympy import Symbol, Heaviside, Piecewise
278+
from sympy import Symbol, Piecewise
279279
ta = [0,4,8,12,16]; tb = [2,6,10,14,18]
280-
ba = Symbol('ba'); bb = Symbol('bb')
280+
ba = Symbol('ba')
281+
bb = Symbol('bb')
281282
fa = sum([Piecewise((0, (t<_t)), ((t-_t)/0.5, (t<_t+0.5)), (1, (t >= _t+0.5))) for _t in ta])*ba
282283
fb = sum([Piecewise((0, (t<_t)), ((t-_t)/0.5, (t<_t+0.5)), (1, (t >= _t+0.5))) for _t in tb])*bb
283284
N = fa+fb
284-
print(N)
285-
286-
.. testoutput::
287-
288-
ba*(Piecewise((0, t < 0), (2.0*t, t < 0.5), (1, t >= 0.5)) + Piecewise((0, t < 4), (2.0*t - 8.0, t < 4.5), (1, t >= 4.5)) + Piecewise((0, t < 8), (2.0*t - 16.0, t < 8.5), (1, t >= 8.5)) + Piecewise((0, t < 12), (2.0*t - 24.0, t < 12.5), (1, t >= 12.5)) + Piecewise((0, t < 16), (2.0*t - 32.0, t < 16.5), (1, t >= 16.5))) + bb*(Piecewise((0, t < 2), (2.0*t - 4.0, t < 2.5), (1, t >= 2.5)) + Piecewise((0, t < 6), (2.0*t - 12.0, t < 6.5), (1, t >= 6.5)) + Piecewise((0, t < 10), (2.0*t - 20.0, t < 10.5), (1, t >= 10.5)) + Piecewise((0, t < 14), (2.0*t - 28.0, t < 14.5), (1, t >= 14.5)) + Piecewise((0, t < 18), (2.0*t - 36.0, t < 18.5), (1, t >= 18.5)))
289285

290286
Or, graphically, if we set :math:`\beta_a=1` and :math:`\beta_b=-2`, as
291287

0 commit comments

Comments
 (0)