pescador.maps.tuples¶
- pescador.maps.tuples(stream, *keys)¶
Reformat data as tuples.
- Parameters:
- streamiterable
Stream of data objects.
- *keysstrings
Keys to use for ordering data.
- Yields:
- itemstuple of np.ndarrays
Data object reformatted as a tuple.
- Raises:
- DataError
If the stream contains items that are not data-like.
- KeyError
If a data object does not contain the requested key.