Exemple #1
0
def start_fusion(input1, input2, output):
#Chose here the fusion strategy!
#first input is augmented - do not change input here, but in the start.py
#    cmd = ["perl", "augment_fusion.pl", input2, input1,output]
#    pipe = subprocess.Popen(cmd,stdout=subprocess.PIPE)
#    pipe.wait()
    
    simple_union.fuse(input1,input2,output)
Exemple #2
0
def start_fusion(input1, input2, output, argument):
#Chose here the fusion strategy!
#first input is augmented - do not change input here, but in the start.py
    if argument == "1":
        print "Simple Union..."
        simple_union.fuse(input1,input2,output)
    elif argument == "2":
        print "Augment fusion (top-down)..."
        cmd = ["perl", "augment_fusion.pl", input1, input2,output]
        pipe = subprocess.Popen(cmd,stdout=subprocess.PIPE)
        pipe.wait()
    elif argument == "3":
        print "Augment fusion (bottom-up)..."
        cmd = ["perl", "augment_fusion.pl", input2, input1,output]
        pipe = subprocess.Popen(cmd,stdout=subprocess.PIPE)
        pipe.wait()