pylab.xscale('log')
  pylab.yscale('log')
  pylab.xlim(xmin=min(g), xmax=4*10**2)
  pylab.legend()

  pfile.close()

  # adding to html page
  name = '_cumul_hist_signif_fap'+str(FAPThr)
  fname = InspiralUtils.set_figure_name(opts, name)
  fname_thumb = InspiralUtils.savefig_pylal(filename=fname, doThumb=True, dpi_thumb=opts.figure_resolution)
  fnameList.append(fname)
  tagList.append(name)
  pylab.close()


##############################################################################################################
### this next bit will help to print the options nicely on the html page
opts_dict = vars(opts)

html_filename = InspiralUtils.write_html_output(opts, [" --"+key.replace('_','-')+"="+str(opts_dict[key]) for key in opts_dict.keys()], fnameList, tagList, comment=comments)
InspiralUtils.write_cache_output(opts, html_filename, fnameList)

if opts.html_for_cbcweb:
  html_filename_publish = InspiralUtils.wrifacte_html_output(opts, args, fnameList, tagList, cbcweb=True)

##############################################################################################################
if opts.verbose:
  print 'Done.'

Exemplo n.º 2
0
    fname_thumb = InspiralUtils.savefig_pylal(filename=fname,
                                              doThumb=True,
                                              dpi_thumb=opts.figure_resolution)
    fnameList.append(fname)
    tagList.append(name)
    pylab.close()

##############################################################################################################
### this next bit will help to print the options nicely on the html page
opts_dict = vars(opts)

html_filename = InspiralUtils.write_html_output(opts, [
    " --" + key.replace('_', '-') + "=" + str(opts_dict[key])
    for key in opts_dict.keys()
],
                                                fnameList,
                                                tagList,
                                                comment=comments)
InspiralUtils.write_cache_output(opts, html_filename, fnameList)

if opts.html_for_cbcweb:
    html_filename_publish = InspiralUtils.wrifacte_html_output(opts,
                                                               args,
                                                               fnameList,
                                                               tagList,
                                                               cbcweb=True)

##############################################################################################################
if opts.verbose:
    print 'Done.'