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

Method test_run_vs_call

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

Source from the content-addressed store, hash-verified

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__' )
198 a = np.arange(self.ssize)
199 b = np.arange(self.ssize)
200 expr = ne3.NumExpr('2*a+3*b')
201 npt.assert_array_almost_equal( expr(a=a, b=b), expr.run(a=a, b=b) )
202
203 def test_floor_div(self):
204 logger.info( 'Test floor div3' )

Callers

nothing calls this directly

Calls 1

runMethod · 0.95

Tested by

no test coverage detected