dataset_type¶
-
gwosc.datasets.dataset_type(dataset, host=
'https://gwosc.org', session=None, pagesize=None)¶ Returns the type of the named dataset
- Parameters:¶
- Returns:¶
type – the type of the dataset, one of ‘run’, ‘event’, or ‘catalog’
- Return type:¶
- Raises:¶
ValueError – if this dataset cannot be matched
Examples
>>> from gwosc.datasets import dataset_type >>> dataset_type("O1") 'run'