Exemple #1
0
def main(project, options):
    # get the options
    file = options.file
    timing = options.timing
    # set the file names
    if timing:
        myTimer = timer.timer(start="Beginning timing", total="Lifetime of timer")
    base = file + "."
    analysis = project.speedExample
    config = analysis.producer + (base + "xml")
    inPmml = analysis.producer + (base + "pmml")
    outPmml = analysis.consumer + (base + "pmml")
    table = project.data + file
    # make the configurations according to the data
    if timing:
        myTimer.output("Creating configuration file")
    makeConfigs(table, config, inPmml, outPmml)
    # make the input pmml
    if timing:
        myTimer.output("Creating input PMML file")
    makePMML(inPmml)
    # call the producer
    if timing:
        myTimer.output("Starting producer")
    Producer.main(config, timing, False)
    if timing:
        del myTimer
Exemple #2
0
def main(project, options):
    #get the options
    file = options.file
    timing = options.timing
    #set the file names
    if timing:
        myTimer = timer.timer(start="Beginning timing",
                              total="Lifetime of timer")
    base = file + "."
    analysis = project.volumeExample
    config = analysis.producer + (base + "xml")
    inPmml = analysis.producer + (base + "pmml")
    outPmml = analysis.consumer + (base + "pmml")
    table = project.data + file
    #make the configurations according to the data
    if timing:
        myTimer.output("Creating configuration file")
    makeConfigs(table, config, inPmml, outPmml)
    #make the input pmml
    if timing:
        myTimer.output("Creating input PMML file")
    makePMML(inPmml)
    #call the producer
    if timing:
        myTimer.output("Starting producer")
    Producer.main(config, timing, False)
    if timing:
        del myTimer