Пример #1
0
def result_view(requestId,parameter_pt):
    results = None
    with open(resultfilepath(requestId,parameter_pt,'dedicated','/results.yaml')) as f:
        results = yaml.load(f)

    print results
    return render_template('hype_result.html',results = results, requestId=requestId,parameter_pt=parameter_pt)
def result_view(requestId,parameter_pt):
  resultdir  = resultfilepath(requestId,parameter_pt,'dedicated','')

  globresult = glob.glob('{}/plots/DMHiggsFiducial/*.dat'.format(resultdir))

  resultdata = yaml.load(open('{}/results.yaml'.format(resultdir)))
  efficiency = resultdata['efficiency']

  plotlist = [os.path.basename(p).rsplit('.',1)[0] for p in globresult]
  return render_template('dmhiggs_result.html',
                         efficiency = efficiency, 
                         requestId=requestId,
                         parameter_pt=parameter_pt,
                         plotlist = plotlist)
Пример #3
0
def result_view(requestId,parameter_pt):
  resultdir  = resultfilepath(requestId,parameter_pt,'dedicated','')
  feynmandiags = [x.rstrip('.pdf').replace(resultdir+'/','') for x in glob.glob('{}/feynmandiags/*.pdf'.format(resultdir))]
  return render_template('result.html',analysisId = RECAST_ANALYSIS_ID,requestId=requestId,parameter_pt=parameter_pt, feynmandiags = feynmandiags)