jtop/core/tegra_parse.py
def WATTS(text):
    """ Parse all milliwats in tegrastats output

        [VDD_name] X/Y
        X = Current power consumption in milliwatts.
        Y = Average power consumption in milliwatts.
    """
    return {str(name): {'cur': int(cur), 'avg': int(avg)} for name, cur, avg in re.findall(WATT_RE, text)}
 Parse all milliwats in tegrastats output

        [VDD_name] X/Y
        X = Current power consumption in milliwatts.
        Y = Average power consumption in milliwatts.
    
Parse all milliwats in tegrastats output
[VDD_name] X/Y
X = Current power consumption in milliwatts.
Y = Average power consumption in milliwatts.
Parse all milliwats in tegrastats output [ VDD_name ] X / Y X = Current power consumption in milliwatts . Y = Average power consumption in milliwatts .
def WATTS(text):
    return {str(name): {'cur': int(cur), 'avg': int(avg)} for name, cur, avg in re.findall(WATT_RE, text)}
def WATTS ( text ) : return { str ( name ) : { 'cur' : int ( cur ) , 'avg' : int ( avg ) } for name , cur , avg in re . findall ( WATT_RE , text ) }
Parse all milliwats in tegrastats output
[VDD_name] X/Y
X = Current power consumption in milliwatts.
Parse all milliwats in tegrastats output [ VDD_name ] X / Y X = Current power consumption in milliwatts .
""" Parse all milliwats in tegrastats output

        [VDD_name] X/Y
        X = Current power consumption in milliwatts.
        Y = Average power consumption in milliwatts.
    """
text