def get_bit_series(self, bits=None):
if bits is None:<EOL><INDENT>bits = [b for b in self.bits if b not in {None, '<STR_LIT>'}]<EOL><DEDENT>bindex = []<EOL>for bit in bits:<EOL><INDENT>try:<EOL><INDENT>bindex.append((self.bits.index(bit), bit))<EOL><DEDENT>except (IndexError, ValueError) as exc:<EOL><INDENT>exc.args = ('<STR_LIT>' % bit,)<EOL>raise<EOL><DEDENT><DEDENT>self._bitseries = StateTimeSeriesDict()<EOL>for i, bit in bindex:<EOL><INDENT>self._bitseries[bit] = StateTimeSeries(<EOL>self.value >> i & <NUM_LIT:1>, name=bit, epoch=self.x0.value,<EOL>channel=self.channel, sample_rate=self.sample_rate)<EOL><DEDENT>return self._bitseries<EOL>
Get the `StateTimeSeries` for each bit of this `StateVector`.

        Parameters
        ----------
        bits : `list`, optional
            a list of bit indices or bit names, defaults to all bits

        Returns
        -------
        bitseries : `StateTimeSeriesDict`
            a `dict` of `StateTimeSeries`, one for each given bit