pyrex.io.EventIterator.get_data¶
-
EventIterator.
get_data
(dataset, attribute=None)¶ Get data from a given dataset.
- Parameters
- datasetstr
Name or location of the dataset.
- attributestr
Attribute of the data to retreive.
- Returns
- tuple or ndarray
Event data stored in the dataset, optionally narrowed by the attribute. If dataset is actually a group containing float and string datasets, and no attribute is specified, a tuple of ndarray will be returned. Otherwise the return value will be an ndarray.
- Raises
- ValueError
If the dataset or attribute is unknown or if the dataset has no event-specific data.