def __len__(self):
        """Returns the current pulse length"""
        self._mq.send("l", True, type=1)
        message = self._wait_receive_msg()
        return int(message[0].decode('utf-8'))
def __len__ ( self ) : self . _mq . send ( "l" , True , type = 1 ) message = self . _wait_receive_msg ( ) return int ( message [ 0 ] . decode ( 'utf-8' ) )
Returns the current pulse length