eris/eris.py
def init_tdp_map(args):
    """
    Initialize thresholds for TDP contention for all workloads
        args - agent command line arguments
    """
    tdp_file = args.tdp_file if hasattr(args, 'tdp_file')\
        and args.tdp_file else 'tdp_thresh.csv'
    tdp_df = pd.read_csv(tdp_file)
    key = 'CID' if args.key_cid else 'CNAME'
    cids = tdp_df[key].unique()
    thresh_map = {}
    for cid in cids:
        tdpdata = tdp_df[tdp_df[key] == cid]

        for row_turple in tdpdata.iterrows():
            row = row_turple[1]
            thresh = dict()
            thresh['util'] = row['UTIL']
            thresh['mean'] = row['MEAN']
            thresh['std'] = row['STD']
            thresh['bar'] = row['BAR']
            thresh_map[cid] = thresh

    if args.verbose:
        print(thresh_map)
    return thresh_map

    Initialize thresholds for TDP contention for all workloads
        args - agent command line arguments
    
Initialize thresholds for TDP contention for all workloads
args - agent command line arguments
Initialize thresholds for TDP contention for all workloads args - agent command line arguments
def init_tdp_map(args):
    tdp_file = args.tdp_file if hasattr(args, 'tdp_file')\
        and args.tdp_file else 'tdp_thresh.csv'
    tdp_df = pd.read_csv(tdp_file)
    key = 'CID' if args.key_cid else 'CNAME'
    cids = tdp_df[key].unique()
    thresh_map = {}
    for cid in cids:
        tdpdata = tdp_df[tdp_df[key] == cid]
        for row_turple in tdpdata.iterrows():
            row = row_turple[1]
            thresh = dict()
            thresh['util'] = row['UTIL']
            thresh['mean'] = row['MEAN']
            thresh['std'] = row['STD']
            thresh['bar'] = row['BAR']
            thresh_map[cid] = thresh
    if args.verbose:
        print(thresh_map)
    return thresh_map
def init_tdp_map ( args ) : tdp_file = args . tdp_file if hasattr ( args , 'tdp_file' ) and args . tdp_file else 'tdp_thresh.csv' tdp_df = pd . read_csv ( tdp_file ) key = 'CID' if args . key_cid else 'CNAME' cids = tdp_df [ key ] . unique ( ) thresh_map = { } for cid in cids : tdpdata = tdp_df [ tdp_df [ key ] == cid ] for row_turple in tdpdata . iterrows ( ) : row = row_turple [ 1 ] thresh = dict ( ) thresh [ 'util' ] = row [ 'UTIL' ] thresh [ 'mean' ] = row [ 'MEAN' ] thresh [ 'std' ] = row [ 'STD' ] thresh [ 'bar' ] = row [ 'BAR' ] thresh_map [ cid ] = thresh if args . verbose : print ( thresh_map ) return thresh_map
Initialize thresholds for TDP contention for all workloads
args - agent command line arguments
Initialize thresholds for TDP contention for all workloads args - agent command line arguments
"""
    Initialize thresholds for TDP contention for all workloads
        args - agent command line arguments
    """
args