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

Method __iter__

numpy/ma/core.py:6417–6427  ·  view source on GitHub ↗

Defines an iterator for mvoid

(self)

Source from the content-addressed store, hash-verified

6415 __repr__ = __str__
6416
6417 def __iter__(self):
6418 "Defines an iterator for mvoid"
6419 (_data, _mask) = (self._data, self._mask)
6420 if _mask is nomask:
6421 yield from _data
6422 else:
6423 for (d, m) in zip(_data, _mask):
6424 if m:
6425 yield masked
6426 else:
6427 yield d
6428
6429 def __len__(self):
6430 return self._data.__len__()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected