kopia lustrzana https://github.com/sepandhaghighi/samila
edit : isSame --> is_same.
rodzic
3e0de846f7
commit
4666c5b3f5
|
@ -134,5 +134,5 @@ def is_same_data(data1, data2, precision=10**-5):
|
|||
:type precision: float
|
||||
:return: True if they are the same
|
||||
"""
|
||||
isSame = map(lambda x, y: abs(x - y) < precision, data1, data2)
|
||||
return all(isSame)
|
||||
is_same = map(lambda x, y: abs(x - y) < precision, data1, data2)
|
||||
return all(is_same)
|
||||
|
|
Ładowanie…
Reference in New Issue