Package glue :: Module cis
[hide private]
[frames] | no frames]

Module cis

source code

Interface to the LIGO Channel Information System

Queries can be made using any part of a channel name, returning a list of entries (key,value dicts) of found channels:


>>> from glue import cis
>>> out = cis.query('PSL-ISS_PSB_OUT_DQ')
>>> print([channel['name'] for channel in out])
[u'H1:PSL-ISS_PDB_OUT_DQ', u'H2:PSL-ISS_PDB_OUT_DQ', u'L1:PSL-ISS_PDB_OUT_DQ']

(example accessed August 26 2013).


Version: 8cbd1b7187ce3ed9a825d6ed11cc432f3cfde9a5

Date: 2017-12-05 15:29:36 +0000

Author: Duncan Macleod <duncan.macleod@ligo.org>

Functions [hide private]
 
_get(url, debug=False)
Perform a GET query against the CIS
source code
 
query(name, debug=False)
Query the Channel Information System for details on the given channel name
source code
Variables [hide private]
  CIS_API_URL = 'https://cis.ligo.org/api/channel'
  CIS_DATA_TYPE = {4: <type 'numpy.float32'>}
  __package__ = 'glue'
Function Details [hide private]

query(name, debug=False)

source code 
Query the Channel Information System for details on the given
channel name

Example::

>>> from glue import cis
>>> out = cis.query('PSL-ISS_PSB_OUT_DQ')
>>> print([channel['name'] for channel in out])
[u'H1:PSL-ISS_PDB_OUT_DQ', u'H2:PSL-ISS_PDB_OUT_DQ',
 u'L1:PSL-ISS_PDB_OUT_DQ']

Parameters
----------
name : str
    Name of the channel of interest, or part of channel to query

Returns
-------
list
    list of (key, value) dicts recovered from the CIS

Raises
------
ValueError
    if no channels are found matching the given name