run_segment

gwosc.datasets.run_segment(run, host='https://gwosc.org')

Returns the GPS [start, stop) interval covered by a run dataset

Parameters:
  • run (str) – the name of the run dataset to query

  • host (str, optional) – the URL of the GWOSC host to query, defaults to https://gwosc.org

Returns:

start, end – the GPS [start, end) interval covered by this run dataset

Return type:

int

Examples

>>> from gwosc.datasets import run_segment
>>> run_segment('O1')
segment(1126051217, 1137254417)
>>> run_segment('Oh dear')
ValueError: no run dataset found for 'Oh dear'