def toHex(self): '''Returns a hex representation of the GDTI-113. Need to make the bits divisble by 4''' h = BitArray("0b%s%s" % ("0",self._bits)) return h.hex[2:].upper()