Nantes Université

Skip to content
Extraits de code Groupes Projets
Valider 039b7eb6 rédigé par Richard Zanibbi's avatar Richard Zanibbi
Parcourir les fichiers

Minor correction for type error resulting from a set operation (&= -

intersection) in lg.py, small formatting change for testlg.py.
parent b2375557
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -455,7 +455,7 @@ class Lg(object):
for p1 in primSets[n1][l1]:
for p2 in primSets[n2][l2]:
if(p1,p2) in self.elabels:
theRelationLab &= self.elabels[(p1,p2)].keys()
theRelationLab &= set(self.elabels[(p1,p2)].keys())
else:
theRelationLab = set([]) # it should be a clique !
if len(theRelationLab) == 0:
......
......@@ -36,7 +36,7 @@ def testshortCuts(compareFiles):
print('>> ' + next[0] + ' vs. ' + next[1])
out1 = n1.compare(n2)
if out1[0][8][1] == 0:
print ("OK")
print ("\tOK ")
else:
print (str(out1))
......@@ -65,7 +65,7 @@ def labelComparison(f1,f2, check):
print(' SegEdge diffs: ' + str(out1[3]))
print(' Correct Segments: ' + str(out1[4]))
else:
print ('OK'+str(check))
print ('\tOK '+str(check))
def testLabelComparisons(compareFiles):
......@@ -93,7 +93,7 @@ def testSegments(segFiles):
(segmentPrimitiveMap, primitiveSegmentMap, noparentSegments, segmentEdges) = \
n.segmentGraph()
if(len(segmentPrimitiveMap) == file[1]["nbSeg"]) and (len(segmentEdges) == file[1]["nbSegEd"]):
print("OK :"+str(file[1]))
print("\tOK :"+str(file[1]))
else:
print(' SEGMENTS -> PRIMITIVES:\n\t' + str(segmentPrimitiveMap))
print(' PRIMITIVES -> SEGMENTS:\n\t' + str(primitiveSegmentMap))
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter