(self, tripplet)
return (x01, x05, x15)
Turn '10,178,528' into tuple of integers
Turn '10,178,528' into tuple of integers
Turn 10 178 528 into tuple of integers
def _convert_tripplet(self, tripplet):
        """ Turn '10,178,528' into tuple of integers """
        splitted = tripplet.split(",")
        if len(splitted) != 3:
            self.log.debug("Got %i chunks, expected 3.", len(splitted))
            return (0, 0, 0)

        try:
            x01 = int(splitted[0])
            x05 = int(splitted[1])
            x15 = int(splitted[2])
        except Exception as exception:
            self.log.warning("Caught exception: %s", exception)
            x01 = 0
            x05 = 0
            x15 = 0

        return (x01, x05, x15)
def _convert_tripplet ( self , tripplet ) : splitted = tripplet . split ( "," ) if len ( splitted ) != 3 : self . log . debug ( "Got %i chunks, expected 3." , len ( splitted ) ) return ( 0 , 0 , 0 ) try : x01 = int ( splitted [ 0 ] ) x05 = int ( splitted [ 1 ] ) x15 = int ( splitted [ 2 ] ) except Exception as exception : self . log . warning ( "Caught exception: %s" , exception ) x01 = 0 x05 = 0 x15 = 0 return ( x01 , x05 , x15 )