name_query_url

dqsegdb2.api.name_query_url(host, ifo)

Returns the URL to use in querying for flag names

Parameters:
host

the URL of the target DQSEGDB2 host

ifo

the interferometer prefix

Returns:

url – the full REST URL to query for information

Return type:

str

Examples

>>> from dqsegdb2.api import name_query_url
>>> print(name_query_url('https://segments.ligo.org', 'G1'))
'https://segments.ligo.org/dq/G1'

Last update: May 23, 2023