insert_history_path

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

Return the API path to query for the insert history 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
>>> insert_history_path('G1', 'GEO-SCIENCE', 1)
'/dq/G1/GEO-SCIENCE/1/insert_history'
>>> insert_history_path('G1', 'GEO-SCIENCE', 1, s=1, e=2)
'/dq/G1/GEO-SCIENCE/1/insert_history?s=1&e=2'