Skip to content

Commit c5b5e6a

Browse files
committed
Update _classes.py
- update the display
1 parent 114802c commit c5b5e6a

1 file changed

Lines changed: 3 additions & 30 deletions

File tree

dabest/_classes.py

Lines changed: 3 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -895,23 +895,10 @@ def __repr__(self, header=True, sigfig=3):
895895

896896
from .misc_tools import print_greeting
897897

898-
899-
RM_STATUS = {'baseline' : 'for repeated measures against baseline \n',
900-
'sequential': 'for the sequential design of repeated-measures experiment \n',
901-
'None' : ''
902-
}
903-
904-
PAIRED_STATUS = {'baseline' : 'paired',
905-
'sequential' : 'paired',
906-
'None' : 'unpaired'
907-
}
908-
909-
first_line = {"rm_status" : RM_STATUS[str(self.__dabest_obj.is_paired)],
910-
"paired_status": PAIRED_STATUS[str(self.__dabest_obj.is_paired)],
911-
"control" : self.__control,
898+
first_line = {"control" : self.__control,
912899
"test" : self.__test}
913900

914-
out1 = "The {paired_status} delta-delta between {control} and {test} ".format(**first_line)
901+
out1 = "The delta-delta between {control} and {test} ".format(**first_line)
915902

916903
base_string_fmt = "{:." + str(sigfig) + "}"
917904
if "." in str(self.__ci):
@@ -1697,22 +1684,8 @@ def __repr__(self, header=True, sigfig=3):
16971684
import numpy as np
16981685

16991686
from .misc_tools import print_greeting
1700-
1701-
1702-
RM_STATUS = {'baseline' : 'for repeated measures against baseline \n',
1703-
'sequential': 'for the sequential design of repeated-measures experiment \n',
1704-
'None' : ''
1705-
}
1706-
1707-
PAIRED_STATUS = {'baseline' : 'paired',
1708-
'sequential' : 'paired',
1709-
'None' : 'unpaired'
1710-
}
1711-
1712-
first_line = {"rm_status" : RM_STATUS[str(self.__dabest_obj.is_paired)],
1713-
"paired_status": PAIRED_STATUS[str(self.__dabest_obj.is_paired)]}
17141687

1715-
out1 = "The {paired_status} weighted mean differences {rm_status}".format(**first_line)
1688+
out1 = "The weighted mean differences ".format(**first_line)
17161689

17171690
base_string_fmt = "{:." + str(sigfig) + "}"
17181691
if "." in str(self.__ci):

0 commit comments

Comments
 (0)