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

Method __array_finalize__

numpy/lib/tests/test_ufunclike.py:65–67  ·  view source on GitHub ↗
(self, obj)

Source from the content-addressed store, hash-verified

63 return obj
64
65 def __array_finalize__(self, obj):
66 self.metadata = getattr(obj, 'metadata', None)
67 return self
68
69 a = nx.array([1.1, -1.1])
70 m = MyArray(a, metadata='foo')

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected