def to_dqflags(self, bits=None, minlen=<NUM_LIT:1>, dtype=float, round=False):
from ..segments import DataQualityDict<EOL>out = DataQualityDict()<EOL>bitseries = self.get_bit_series(bits=bits)<EOL>for bit, sts in bitseries.items():<EOL><INDENT>out[bit] = sts.to_dqflag(name=bit, minlen=minlen, round=round,<EOL>dtype=dtype,<EOL>description=self.bits.description[bit])<EOL><DEDENT>return out<EOL>
Convert this `StateVector` into a `~gwpy.segments.DataQualityDict`

        The `StateTimeSeries` for each bit is converted into a
        `~gwpy.segments.DataQualityFlag` with the bits combined into a dict.

        Parameters
        ----------
        minlen : `int`, optional, default: 1
           minimum number of consecutive `True` values to identify as a
           `Segment`. This is useful to ignore single bit flips,
           for example.

        bits : `list`, optional
            a list of bit indices or bit names to select, defaults to
            `~StateVector.bits`

        Returns
        -------
        DataQualityFlag list : `list`
            a list of `~gwpy.segments.flag.DataQualityFlag`
            reprensentations for each bit in this `StateVector`

        See Also
        --------
        :meth:`StateTimeSeries.to_dqflag`
            for details on the segment representation method for
            `StateVector` bits