@classmethod<EOL><INDENT>def query_segdb(cls, flag, *args, **kwargs):<DEDENT>
warnings.warn("<STR_LIT>"<EOL>"<STR_LIT>", DeprecationWarning)<EOL>qsegs = _parse_query_segments(args, cls.query_segdb)<EOL>try:<EOL><INDENT>flags = DataQualityDict.query_segdb([flag], qsegs, **kwargs)<EOL><DEDENT>except TypeError as exc:<EOL><INDENT>if '<STR_LIT>' in str(exc):<EOL><INDENT>raise TypeError(str(exc).replace('<STR_LIT>',<EOL>cls.__name__))<EOL><DEDENT>else:<EOL><INDENT>raise<EOL><DEDENT><DEDENT>if len(flags) > <NUM_LIT:1>:<EOL><INDENT>raise RuntimeError("<STR_LIT>"<EOL>"<STR_LIT>"<EOL>% '<STR_LIT>'.join(flags.keys()))<EOL><DEDENT>elif len(flags) == <NUM_LIT:0>:<EOL><INDENT>raise RuntimeError("<STR_LIT>"<EOL>"<STR_LIT>")<EOL><DEDENT>return flags[flag]<EOL>
Query the initial LIGO segment database for the given flag

        Parameters
        ----------
        flag : `str`
            The name of the flag for which to query

        *args
            Either, two `float`-like numbers indicating the
            GPS [start, stop) interval, or a `SegmentList`
            defining a number of summary segments

        url : `str`, optional
            URL of the segment database, defaults to
            ``$DEFAULT_SEGMENT_SERVER`` environment variable, or
            ``'https://segments.ligo.org'``

        Returns
        -------
        flag : `DataQualityFlag`
            A new `DataQualityFlag`, with the `known` and `active` lists
            filled appropriately.