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 = 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.'
    pylab.close()

    # 17
    fig_num += 1
    pylab.figure(1)

    pylab.plot(values_FOM, values_splits, "yo")
    pylab.title("Correlation between delta FOM and number of splittings")
    pylab.xlabel("Values for delta FOM")
    pylab.ylabel("Number of splits")

    name = "FOM_splits"
    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("FOM_splits")

    pylab.close()

##############################################################################################################


html_filename = InspiralUtils.write_html_output(opts, args, 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)

##############################################################################################################
    pylab.xlabel('Values for delta FOM')
    pylab.ylabel('Number of splits')

    name = "FOM_splits"
    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("FOM_splits")

    pylab.close()

##############################################################################################################

html_filename = InspiralUtils.write_html_output(opts,
                                                args,
                                                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)

##############################################################################################################