Skip to content

Commit 9caf23e

Browse files
authored
Merge pull request #117 from LI-Yixuan/create_new
test added & small bugs fixed
2 parents c1b4661 + b00702b commit 9caf23e

22 files changed

Lines changed: 389 additions & 7 deletions

dabest/_classes.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,8 @@ def __repr__(self):
236236

237237
greeting_header = print_greeting()
238238

239-
RM_STATUS = {'baseline' : 'for repeated measures against baseline',
240-
'sequential': 'for the sequential design of repeated-measures experiment',
239+
RM_STATUS = {'baseline' : 'for repeated measures against baseline \n',
240+
'sequential': 'for the sequential design of repeated-measures experiment \n',
241241
'None' : ''
242242
}
243243

@@ -249,7 +249,7 @@ def __repr__(self):
249249
first_line = {"rm_status" : RM_STATUS[str(self.__is_paired)],
250250
"paired_status": PAIRED_STATUS[str(self.__is_paired)]}
251251

252-
s1 = "{paired_status}ffect size(s) {rm_status} ".format(**first_line)
252+
s1 = "{paired_status}ffect size(s) {rm_status}".format(**first_line)
253253
s2 = "with {}% confidence intervals will be computed for:".format(self.__ci)
254254
desc_line = s1 + s2
255255

@@ -765,7 +765,7 @@ def __init__(self, control, test, effect_size,
765765
err2 = "is not one of {}".format(kosher_es)
766766
raise ValueError(" ".join([err1, err2]))
767767

768-
if effect_size == "cliffs_delta" and paired:
768+
if effect_size == "cliffs_delta" and is_paired:
769769
err1 = "`paired` is not None; therefore Cliff's delta is not defined."
770770
raise ValueError(err1)
771771

@@ -987,8 +987,8 @@ def __repr__(self, show_resample_count=True, define_pval=True, sigfig=3):
987987
# "Brunner-Munzel" : "pvalue_brunner_munzel",
988988
# "Wilcoxon" : "pvalue_wilcoxon"}
989989

990-
RM_STATUS = {'baseline' : 'for repeated measures against baseline',
991-
'sequential': 'for the sequential design of repeated-measures experiment',
990+
RM_STATUS = {'baseline' : 'for repeated measures against baseline \n',
991+
'sequential': 'for the sequential design of repeated-measures experiment \n',
992992
'None' : ''
993993
}
994994

@@ -1001,7 +1001,7 @@ def __repr__(self, show_resample_count=True, define_pval=True, sigfig=3):
10011001
"es" : self.__EFFECT_SIZE_DICT[self.__effect_size],
10021002
"paired_status": PAIRED_STATUS[str(self.__is_paired)]}
10031003

1004-
out1 = "The {paired_status} {es} {rm_status} ".format(**first_line)
1004+
out1 = "The {paired_status} {es} {rm_status}".format(**first_line)
10051005

10061006
base_string_fmt = "{:." + str(sigfig) + "}"
10071007
if "." in str(self.__ci):
72 KB
Loading
69.9 KB
Loading
70 KB
Loading
71 KB
Loading
71.8 KB
Loading
71.5 KB
Loading
36.1 KB
Loading
36.7 KB
Loading
37.2 KB
Loading

0 commit comments

Comments
 (0)