Beispiel #1
0
def init(args):
    configure.init(args)
Beispiel #2
0
        'Limit the analysis to a list of files. File paths must be provided in the FILES argument as comma separated list.'
    )
    parser.add_argument('-c',
                        '--cfg',
                        default='configuration.cfg',
                        help='Configuration file to be used')
    parser.add_argument(
        '-d',
        '--detect',
        action='store_true',
        default=False,
        help=
        'Only finds new files and store them in the run DB with a False (i.e. not processed) flag.'
    )

    return parser.parse_args()


if __name__ == "__main__":
    args = parse_args()
    cfg.init(args.cfg)
    acc = accumulator.accumulator()
    if args.files:
        cfg.global_odir = "out"
        print("Plots will be stored in the `out' directory.")
        ana.analyze(args.files.split(","), acc)
    else:
        ana_dir(cfg.data_root, acc, detect_only=args.detect)

    #plt.clean_tmpfiles()
Beispiel #3
0
def init(args):
    configure.init(args)
Beispiel #4
0
def getUser(sock):
	try:
		userinfo = userlog.getInfo()
	except:	
		userinfo = configure.init(sock)
	return userinfo