Exemple #1
0
    #-------------------------------------------------------------------------------

    print "Analysing Histograms located in directory %s at: " % options.dir_name
    for filename in rootfilename1, rootfilename2:
        print " o %s" % filename

    if len(black_list) > 0:
        print "We have a Blacklist:"
        for dirid in black_list:
            print " o %s" % dirid

    # Set up the fake directory structure
    directory = Directory(options.dir_name)
    dirwalker = DirWalkerFile(fulldirname, options.dir_name, rootfilename1,
                              rootfilename2, run, black_list,
                              options.stat_test, options.test_threshold,
                              not options.no_successes, options.do_pngs)

    # Start the walker
    outdir_name = options.outdir_name
    if run > 1 and options.specify_run:
        outdir_name += "_%s" % run
        fulldirname += "_%s" % run
    print "+" * 30
    print "Output Directory will be ", outdir_name
    options.outdir_name = outdir_name
    if not exists(outdir_name) and len(outdir_name) > 0:
        mkdir(outdir_name)
    if len(outdir_name) > 0:
        chdir(outdir_name)
    dirwalker.walk()
    print " o %s" %filename


  if len(black_list)>0:
    print "We have a Blacklist:"
    for dirid in black_list:
      print " o %s" %dirid

  # Set up the fake directory structure
  directory=Directory(options.dir_name)
  dirwalker=DirWalkerFile(fulldirname,
                          options.dir_name,
                          rootfilename1,rootfilename2,
                          run,
                          black_list,
                          options.stat_test,
                          options.test_threshold,
                          not options.no_successes,
                          options.do_pngs,
                          set(black_listed)
                          )
                          
  # Start the walker
  outdir_name=options.outdir_name
  if run>1 and options.specify_run:
    outdir_name+="_%s" %run
    fulldirname+="_%s" %run
  print "+"*30
  print "Output Directory will be ", outdir_name
  options.outdir_name=outdir_name
  if not exists(outdir_name) and len(outdir_name )>0: