DocTestFailure error when doing brian2.test()

I’m getting the following error messages. Is it safe to ignore it?


Running doctests
…F… [100%]
======================================================= FAILURES =======================================================_______________________________ [doctest] brian2.stateupdaters.explicit.split_expression _______________________________054 function-independent terms and terms involving f) and the
055 stochastic part of the expression (terms involving g and/or dW).
057 Examples
058 --------
059 >>> split_expression(‘dt * __f(__x, __t)’)
060 (dt*__f(__x, __t), None)
061 >>> split_expression(‘dt * __f(__x, __t) + __dW * __g(__x, __t)’)
062 (dt*__f(__x, __t), __dW*__g(__x, __t))
063 >>> split_expression('1/(2dt**.5)(__g_support - __g(__x, __t))(__dW2)’)
(0, __dW
__g_supportdt**(-0.5)/2 - __dW**2dt**(-0.5)__g(__x, __t)/2)
(0, __dW**2
__g_support/(2dt0.5) - __dW2__g(__x, __t)/(2*dt**0.5))

/home/wxie/anaconda3/lib/python3.8/site-packages/brian2/stateupdaters/ DocTestFailure
=================================================== warnings summary ===================================================core/
/home/wxie/anaconda3/lib/python3.8/site-packages/brian2/core/ DeprecationWarning: np.float is a deprecated alias for the builtin float. To silence this warning, use float by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use np.float64 here.
Deprecated in NumPy 1.20; for more details and guidance: NumPy 1.20.0 Release Notes — NumPy v1.23.dev0 Manual
dtype=np.float, read_only=True, constant=True,


Yes, it is safe to ignore, apologies about this… See Failed brian2.test() with latest sympy/numpy · Issue #1365 · brian-team/brian2 · GitHub for more details.

1 Like