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)
| 301 | |
| 302 | |
| 303 | def _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 | |
| 327 | def _fix_output(output, usemask=True, asrecarray=False): |
no outgoing calls
no test coverage detected
searching dependent graphs…