MCPcopy Create free account
hub / github.com/pydata/numexpr / test_all_scalar

Method test_all_scalar

numexpr3/tests/test_numexpr.py:188–194  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

186 npt.assert_array_equal( neObj3(), 2*a + 3*c )
187
188 def test_all_scalar(self):
189 logger.info( 'Test all scalar: DEBUG' )
190 import numpy as np
191 a = 3.
192 b = 4.
193 expr = ne3.NumExpr('np.pi*(2*a+3*b)')
194 npt.assert_allclose( expr(), np.pi*(2*a + 3*b) )
195
196 def test_run_vs_call(self):
197 logger.info( 'Compare run versus __call__' )

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected