From 4666c5b3f5c8e6092e24c2227762819d0f771fe0 Mon Sep 17 00:00:00 2001 From: sadrasabouri Date: Thu, 7 Oct 2021 09:25:53 +0330 Subject: [PATCH] edit : isSame --> is_same. --- samila/functions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samila/functions.py b/samila/functions.py index 312f432..b2d1abd 100644 --- a/samila/functions.py +++ b/samila/functions.py @@ -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)