-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpair.py
33 lines (24 loc) · 772 Bytes
/
pair.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
class Pair:
def __init__(self, recordA, recordB, score, y):
self.recordA = recordA
self.recordB = recordB
self.score = score
self.y = y
def getAtributesAsZip(self):
attributesA = self.recordA.getAllAttributes()
recordB = self.recordB
zipAttributes = []
for attrA in attributesA:
tmpId = attrA.getId()
attrB = recordB.getAttributeById(tmpId)
tmpTuple = (attrA, attrB)
zipAttributes.append(tmpTuple)
return zipAttributes
def getRecordA(self):
return self.recordA
def getRecordB(self):
return self.recordB
def getScore(self):
return self.score
def getY(self):
return self.y