Esempio n. 1
0
        args.mds_op += ["cpu"]
    return(args)

#*******************************************************************************

print "This code is out of date. Revise before using."
sys.exit(1)
args = process_args()
fsrc = LMTConfig.process_configuration(args)
mds = MDS.MDS(host=fsrc['host'], fs=fsrc['name'])
if args.verbose == True:
    mds.debug()
    mds.debug(module="Operation")
    #mds.debug(module="Timestamp")
mds.opsFromDB(fsrc['conn'])
(beginTimestamp, endTimestamp) = Timestamp.day(args, fsrc)
Steps = TimeSteps.TimeSteps()
Steps.getTimeSteps(beginTimestamp, endTimestamp, fsrc['conn'])
mds.setSteps(Steps)
mds.getData()
if mds.haveData == False:
    print "got no data from %s to %s" % (args.begin, args.end)
    sys.exit(0)
if args.report == True:
    mds.report()
#print "%d steps" % mds.Steps.steps()
if args.x_correlate == True:
    if args.hilite_op == None:
        args.hilite_op = args.mds_op[0]
    if (args.plot == None) or (args.plot == "noplot"):
        MDS.do_xcorr(mds, plot=None, ybound=args.ybound, hilite=args.hilite_op)