active_path

dqsegdb2.api.active_path(ifo, flag, version, s=None, e=None)

Return the API path to query for active segments for a specific flag.

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.

Examples

>>> from dqsegdb2.api import resources_path
>>> active_path('G1', 'GEO-SCIENCE', 1)
'/dq/G1/GEO-SCIENCE/1/active'
>>> active_path('G1', 'GEO-SCIENCE', 1, s=1, e=2)
'/dq/G1/GEO-SCIENCE/1/active?s=1&e=2'