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

Class sub

numpy/core/tests/test_arrayprint.py:21–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19
20 def test_subclass(self):
21 class sub(np.ndarray): pass
22
23 # one dimensional
24 x1d = np.array([1, 2]).view(sub)

Callers 3

__getitem__Method · 0.70
test_object_subclassMethod · 0.70

Calls

no outgoing calls

Tested by 3

__getitem__Method · 0.56
test_object_subclassMethod · 0.56