Ejemplo n.º 1
0
 def CompareTwoCellsCommentAndEdgeAndPrint(address1, address2, threshold, outputname, *args):
     preCB = XMLinterpreter(address1)
     preAC = XMLinterpreter(address2)
     condition  = [True, True, True, False]
     CB = CellCointainer(preCB, condition)
     AC = CellCointainer(preAC, condition)
     comments = CB.commentWithKeywordExtract(*args)
     comments.sort(key = lambda x:x[1])
     edges = AC.allEdgesExtract(1)
     
     
     CBAC =XMLutility.compareTwoCellandReturnMidPoint(comments, edges, threshold, 1)
     CBACsorted =XMLutility.sortNodes(CBAC)
     CBACsorted = XMLutility.dictToCluster(CBACsorted, threshold)
     printCBAC = XMLutility.XMLTempPrinter1(CB.Parameter, CBACsorted, outputname)