Returns an iterator of concatenated fields from a sequence of arrays.
(iterable)
| 283 | |
| 284 | |
| 285 | def _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 | |
| 301 | def _izip_records(seqarrays, fill_value=None, flatten=True): |
nothing calls this directly
no outgoing calls
no test coverage detected