Skip to content

Commit 114802c

Browse files
committed
Update _classes.py
1 parent 5f79b02 commit 114802c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

dabest/_classes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -883,7 +883,7 @@ def __permutation_test(self):
883883

884884
self.__permutations_delta_delta = np.array(self.__permutations[1]-self.__permutations[0])
885885

886-
self.__pvalue_permutation = len(list(filter(lambda x: x>THRESHOLD,
886+
self.__pvalue_permutation = len(list(filter(lambda x: np.abs(x)>THRESHOLD,
887887
self.__permutations_delta_delta)))/self.__permutation_count
888888

889889

@@ -1254,7 +1254,7 @@ def __permutation_test(self):
12541254

12551255
self.__permutations_weighted_delta = np.array(output)
12561256

1257-
self.__pvalue_permutation = len(list(filter(lambda x: x>THRESHOLD,
1257+
self.__pvalue_permutation = len(list(filter(lambda x: np.abs(x)>THRESHOLD,
12581258
output)))/self.__permutation_count
12591259

12601260

0 commit comments

Comments
 (0)