dataset_type

gwosc.datasets.dataset_type(dataset, host='https://gwosc.org')

Returns the type of the named dataset

Parameters:
  • dataset (str) – The name of the dataset to match

  • host (str, optional) – the URL of the GWOSC host to query

Returns:

type – the type of the dataset, one of ‘run’, ‘event’, or ‘catalog’

Return type:

str

Raises:

ValueError – if this dataset cannot be matched

Examples

>>> from gwosc.datasets import dataset_type
>>> dataset_type('O1')
'run'