示例#1
0
def test(args):
    preset, ulevel, cdr, runtime = args
    id, jobname, description, options, alt = preset

    template = get_template_generator("high_standard")().get_template(ulevel)
    parser = IndividualDPMGenerator(jobname, template)
    parser.set_runtime(runtime * 1000)
    result = parser.get_detailed_dpm(ulevel=ulevel, cdr=cdr, options=options)
    dpm = result["dpm"]
    loss = result["loss"]

    return jobname, cdr, description, dpm, loss, alt
示例#2
0
def test(args):
    preset, ulevel, cdr, runtime = args
    id, jobname, description, options, alt = preset
    parser = IndividualDPMGenerator(jobname)
    parser.set_runtime(runtime * 1000)
    result = parser.get_detailed_dpm(spec_name=str(ulevel),
                                     ulevel=ulevel,
                                     cdr=cdr,
                                     options=options)
    dpm = result["dpm"]
    loss = result["loss"]

    return jobname, cdr, description, dpm, loss, alt