MCPcopy Create free account
hub / github.com/numpy/numpy / __array_prepare__

Method __array_prepare__

numpy/core/tests/test_umath.py:3203–3204  ·  view source on GitHub ↗
(self, arr, context=None)

Source from the content-addressed store, hash-verified

3201 return np.zeros(1)
3202
3203 def __array_prepare__(self, arr, context=None):
3204 raise RuntimeError
3205
3206 a = A()
3207 assert_raises(RuntimeError, ncu.maximum, a, a)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected