Skip to content

Commit 67211c7

Browse files
committed
[MNT] change backslash to frontslash in mcm utils
1 parent cbedf33 commit 67211c7

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

MCM/utils.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -535,15 +535,15 @@ def holms_correction(analysis):
535535

536536
def get_cell_legend(
537537
analysis,
538-
win_label='row > col',
539-
tie_label='row = col',
540-
loss_label='row < col',
538+
win_label='r>c',
539+
tie_label='r=c',
540+
loss_label='r<c',
541541
):
542542

543543
cell_legend = capitalize_label(analysis['use-mean'])
544544
longest_string = len(cell_legend)
545545

546-
win_tie_loss_string = f"{win_label} \ {tie_label} \ {loss_label}"
546+
win_tie_loss_string = f"{win_label} / {tie_label} / {loss_label}"
547547
longest_string = max(longest_string, len(win_tie_loss_string))
548548

549549
cell_legend = f"{cell_legend}\n{win_tie_loss_string}"
@@ -616,16 +616,16 @@ def get_annotation(
616616

617617
if 'win' in pairwise_keys:
618618

619-
string_in_cell = f"{string_in_cell}{pairwise_content['win']} \ "
620-
string_in_cell = f"{string_in_cell}{pairwise_content['tie']} \ "
619+
string_in_cell = f"{string_in_cell}{pairwise_content['win']} / "
620+
string_in_cell = f"{string_in_cell}{pairwise_content['tie']} / "
621621
string_in_cell = f"{string_in_cell}{pairwise_content['loss']}\n"
622622

623623
n_info_per_cell += 1
624624

625625
if 'p-x-wins' in pairwise_keys:
626626

627-
string_in_cell = f"{string_in_cell}{pairwise_content['p-x-wins']:{fmt}} \ "
628-
string_in_cell = f"{string_in_cell}{pairwise_content['p-rope']:{fmt}} \ "
627+
string_in_cell = f"{string_in_cell}{pairwise_content['p-x-wins']:{fmt}} / "
628+
string_in_cell = f"{string_in_cell}{pairwise_content['p-rope']:{fmt}} / "
629629
string_in_cell = f"{string_in_cell}{pairwise_content['p-y-wins']:{fmt}}\n"
630630

631631
if 'pvalue' in pairwise_keys:

0 commit comments

Comments
 (0)