run_segment¶
-
gwosc.datasets.run_segment(run, host=
'https://gwosc.org', session=None)¶ Returns the GPS
[start, stop)interval covered by a run dataset- Parameters:¶
- run¶
the name of the run dataset to query
- host=
'https://gwosc.org'¶ the URL of the GWOSC host to query, defaults to https://gwosc.org
- session=
None¶ HTTP session to use for making requests, defaults to using a new session for each API call
- Returns:¶
start, end – the GPS
[start, end)interval covered by this run dataset- Return type:¶
Examples
>>> from gwosc.datasets import run_segment >>> run_segment("O1") segment(1126051217, 1137254417) >>> run_segment("Oh dear") ValueError: Run 'Oh dear' not found.