eris/eris.py
def init_wlset(ctx):
    """
    Initialize workload set for both LC and BE
        ctx - agent context
    """
    key = 'CID' if ctx.args.key_cid else 'CNAME'
    wl_df = pd.read_csv(ctx.args.workload_conf_file)
    lcs = []
    bes = []
    for row_turple in wl_df.iterrows():
        row = row_turple[1]
        workload = row[key]
        if row['TYPE'] == 'LC':
            lcs.append(workload)
        else:
            bes.append(workload)
    ctx.lc_set = set(lcs)
    ctx.be_set = set(bes)
    if ctx.args.verbose:
        print(ctx.lc_set)
        print(ctx.be_set)

    Initialize workload set for both LC and BE
        ctx - agent context
    
Initialize workload set for both LC and BE
ctx - agent context
Initialize workload set for both LC and BE ctx - agent context
def init_wlset(ctx):
    key = 'CID' if ctx.args.key_cid else 'CNAME'
    wl_df = pd.read_csv(ctx.args.workload_conf_file)
    lcs = []
    bes = []
    for row_turple in wl_df.iterrows():
        row = row_turple[1]
        workload = row[key]
        if row['TYPE'] == 'LC':
            lcs.append(workload)
        else:
            bes.append(workload)
    ctx.lc_set = set(lcs)
    ctx.be_set = set(bes)
    if ctx.args.verbose:
        print(ctx.lc_set)
        print(ctx.be_set)
def init_wlset ( ctx ) : key = 'CID' if ctx . args . key_cid else 'CNAME' wl_df = pd . read_csv ( ctx . args . workload_conf_file ) lcs = [ ] bes = [ ] for row_turple in wl_df . iterrows ( ) : row = row_turple [ 1 ] workload = row [ key ] if row [ 'TYPE' ] == 'LC' : lcs . append ( workload ) else : bes . append ( workload ) ctx . lc_set = set ( lcs ) ctx . be_set = set ( bes ) if ctx . args . verbose : print ( ctx . lc_set ) print ( ctx . be_set )
Initialize workload set for both LC and BE
ctx - agent context
Initialize workload set for both LC and BE ctx - agent context
"""
    Initialize workload set for both LC and BE
        ctx - agent context
    """
ctx