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

Function _izip_fields

numpy/lib/recfunctions.py:285–298  ·  view source on GitHub ↗

Returns an iterator of concatenated fields from a sequence of arrays.

(iterable)

Source from the content-addressed store, hash-verified

283
284
285def _izip_fields(iterable):
286 """
287 Returns an iterator of concatenated fields from a sequence of arrays.
288
289 """
290 for element in iterable:
291 if (hasattr(element, '__iter__') and
292 not isinstance(element, str)):
293 yield from _izip_fields(element)
294 elif isinstance(element, np.void) and len(tuple(element)) == 1:
295 # this statement is the same from the previous expression
296 yield from _izip_fields(element)
297 else:
298 yield element
299
300
301def _izip_records(seqarrays, fill_value=None, flatten=True):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected