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

Method __array__

numpy/lib/arrayterator.py:127–134  ·  view source on GitHub ↗

Return corresponding data.

(self)

Source from the content-addressed store, hash-verified

125 return out
126
127 def __array__(self):
128 """
129 Return corresponding data.
130
131 """
132 slice_ = tuple(slice(*t) for t in zip(
133 self.start, self.stop, self.step))
134 return self.var[slice_]
135
136 @property
137 def flat(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected