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

Function _izip_records

numpy/lib/recfunctions.py:303–324  ·  view source on GitHub ↗

Returns an iterator of concatenated items from a sequence of arrays. Parameters ---------- seqarrays : sequence of arrays Sequence of arrays. fill_value : {None, integer} Value used to pad shorter iterables. flatten : {True, False}, Whether to

(seqarrays, fill_value=None, flatten=True)

Source from the content-addressed store, hash-verified

301
302
303def _izip_records(seqarrays, fill_value=None, flatten=True):
304 """
305 Returns an iterator of concatenated items from a sequence of arrays.
306
307 Parameters
308 ----------
309 seqarrays : sequence of arrays
310 Sequence of arrays.
311 fill_value : {None, integer}
312 Value used to pad shorter iterables.
313 flatten : {True, False},
314 Whether to
315 """
316
317 # Should we flatten the items, or just use a nested approach
318 if flatten:
319 zipfunc = _izip_fields_flat
320 else:
321 zipfunc = _izip_fields
322
323 for tup in itertools.zip_longest(*seqarrays, fillvalue=fill_value):
324 yield tuple(zipfunc(tup))
325
326
327def _fix_output(output, usemask=True, asrecarray=False):

Callers 1

merge_arraysFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…