def from_bits(self, bits):
        """
        Set this person from bits (ignores the id)

        :param bits: Bits representing a person
        :type bits: bytearray
        :rtype: Person
        :raises ValueError: Bits has an unexpected length
        """
        # TODO include id
        if len(bits) != Person.BITS_PER_PERSON:
            raise ValueError(u"Person requires exactly {} bits".format(
                Person.BITS_PER_PERSON
            ))
        self.sitting = bool(bits[0])
        return self
def from_bits ( self , bits ) : if len ( bits ) != Person . BITS_PER_PERSON : raise ValueError ( u"Person requires exactly {} bits" . format ( Person . BITS_PER_PERSON ) ) self . sitting = bool ( bits [ 0 ] ) return self
Set this person from bits (ignores the id)

        :param bits: Bits representing a person
        :type bits: bytearray
        :rtype: Person
        :raises ValueError: Bits has an unexpected length