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
          webpage.table[0].row[row_number].cell[2].text('Rank=' + '%.3f' % dt_candidate_rank)
          webpage.table[0].row[row_number].cell[2].link("Images/" + os.path.basename(dtFigure),"Delta t distribution")

    if opts.enable_output:

      #save file containing list of channels
      txtChannels = file(html_filename.replace(".html",".txt"),"w")
      if opts.plot_z_distribution:
        txtChannels.write("#channel Z rank\n")
      else:
        txtChannels.write("#channel Z\n")
      txtChannels.write(listZvalues)
      txtChannels.close()

      webpage.cleanWrite('IUL')
      InspiralUtils.write_cache_output(opts,html_filename,fnameList)

# Display the list of parameters for each channel
if opts.create_param_list:
  for channel in channelList:
    printDeltatList(opts,backgroundTable,channel,'peak_time',0.01,0.49)


if opts.process_background_only:

  if opts.enable_output:
    html_filename = opts.output_path + opts.prefix + opts.suffix + ".html"
    webpage = webUtils.WebPage("Qscan background study",html_filename)

  channel_counter = len(channelList)
  n_rows = channel_counter + 1