Skip to content

Commit e33eea5

Browse files
committed
linting for permutation pvalues
1 parent d065671 commit e33eea5

1 file changed

Lines changed: 10 additions & 9 deletions

File tree

dabest/_classes.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,8 @@ def __init__(self, control, test, effect_size,
670670
'statistic_welch': 0.9472545159069105,
671671
'statistic_wilcoxon': nan}
672672
"""
673-
673+
674+
import numpy as np
674675
from numpy import array, isnan, isinf
675676
from numpy import sort as npsort
676677
from numpy.random import choice, seed
@@ -802,7 +803,7 @@ def __init__(self, control, test, effect_size,
802803
self.__pct_high = self.__bootstraps[pct_idx_high]
803804

804805
# Perform statistical tests.
805-
806+
806807
self.__PermutationTest_result = PermutationTest(control, test,
807808
effect_size,
808809
is_paired,
@@ -1225,9 +1226,9 @@ def statistic_mann_whitney(self):
12251226
@property
12261227
def pvalue_permutation(self):
12271228
return self.__PermutationTest_result.pvalue
1228-
1229-
1230-
1229+
1230+
#
1231+
#
12311232
@property
12321233
def permutation_count(self):
12331234
return self.__PermutationTest_result.permutation_count
@@ -1353,7 +1354,7 @@ def __pre_calc(self):
13531354
self.__is_paired,
13541355
self.__ci,
13551356
self.__resamples,
1356-
self.__permutation_count,
1357+
# self.__permutation_count,
13571358
self.__random_seed)
13581359
r_dict = result.to_dict()
13591360

@@ -1397,10 +1398,10 @@ def __pre_calc(self):
13971398
'bca_low', 'bca_high', 'bca_interval_idx',
13981399
'pct_low', 'pct_high', 'pct_interval_idx',
13991400

1400-
'pvalue_permutation', 'permutation_count',
1401-
14021401
'bootstraps', 'resamples', 'random_seed',
1403-
1402+
1403+
'pvalue_permutation', 'permutation_count',
1404+
14041405
'pvalue_welch',
14051406
'statistic_welch',
14061407

0 commit comments

Comments
 (0)