예제 #1
0
def doSchedule(parameters, savepath, bool = True):
    try:
        params = Utilities.WrappedDictionary("missing parameter", parameters)
        validateAndMassageParameters(params)
        logging.debug(params)
        (stri, sched) = dr.makeSchedule(params)
        if bool:
            t.displayPoints(sched, params['dimensions'][0]['range'][1], 
                    params['dimensions'][1]['range'][1])
        outfile = open(savepath, 'w')
        outfile.write(stri)
        outfile.close()
    except Exception, e:
        logging.error(e)
        raise
예제 #2
0
def myTest(file):
    opened = open(file, "r")
    text = opened.read()
    sched = t.getSchedule(text)
    g.displayPoints(sched, 128, 128)