resources_path¶
- dqsegdb2.api.resources_path(ifo, flag, version, s=None, e=None, include=None)¶
Return the API path to query for a specific flag version.
- Parameters:
ifo (
str
) – The prefix (two-character) for an interferometer.flag (
str
) – The name (excluding the IFO prefix) of a flag.version (
int
) – The version number of the flag.s (
float
) – The GPS start time of the interval of interest.e (
float
) – The GPS end time of the interval of interest.include (
list
ofstr
) – The resources to include in the returned data. Typically one or more of'active'
,'known'
, or'metadata'
.
Examples
>>> from dqsegdb2.api import resources_path >>> resources_path('G1', 'GEO-SCIENCE', 1) '/dq/G1/GEO-SCIENCE/1' >>> resources_path('G1', 'GEO-SCIENCE', 1, s=1, e=2) '/dq/G1/GEO-SCIENCE/1?s=1&e=2'