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

Method __len__

numpy/ma/mrecords.py:180–189  ·  view source on GitHub ↗

Returns the length

(self)

Source from the content-addressed store, hash-verified

178 return self._mask
179
180 def __len__(self):
181 """
182 Returns the length
183
184 """
185 # We have more than one record
186 if self.ndim:
187 return len(self._data)
188 # We have only one record: return the nb of fields
189 return len(self.dtype)
190
191 def __getattribute__(self, attr):
192 try:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected