@@ -1122,16 +1122,21 @@ def test_pairwise_sig_for_realistic_example_mr_x_mr(self):
11221122 )
11231123
11241124 def test_pairwise_significance_indices_for_realistic_example_mr_x_mr (self ):
1125- transforms = {"columns_dimension" : {"elements" : {"1" : {"hide" : True }}}}
1126- slice_ = Cube (OL .MR_X_MR_REALISTIC_EXAMPLE , transforms = transforms ).partitions [0 ]
1125+ transforms = {
1126+ "columns_dimension" : {
1127+ "elements" : {"1" : {"hide" : True }},
1128+ "pairwise_significance" : {"pairwise_indices" : {"alpha" : [0.05 ]}},
1129+ }
1130+ }
11271131
1132+ slice_ = Cube (OL .MR_X_MR_REALISTIC_EXAMPLE , transforms = transforms ).partitions [0 ]
11281133 assert slice_ .pairwise_indices .tolist () == [
1129- [(0 , 1 , 2 , 3 , 4 ), (1 , 2 , 3 , 4 ), ( 4 , ), (4 ,), (1 , 2 , 4 )],
1130- [(1 , 4 ), ( 1 , 2 , 3 , 4 ), (4 ,), (1 , 3 , 4 ), (1 , 4 )],
1131- [(4 ,), (4 ,), ( 0 , 2 , 3 , 4 ), (4 ,), (0 , 2 , 4 )],
1132- [(4 ,), ( 1 , 4 ), (4 ,), (0 , 1 , 3 , 4 ), (1 , 4 )],
1133- [(4 ,), ( 1 , 4 ), (4 ,), (1 , 4 ), (0 , 1 , 2 , 4 )],
1134- [(1 ,), (1 , ), (), (1 ,), (1 , )],
1134+ [(1 , 2 , 3 , 4 ), (4 , ), (4 ,), (1 , 2 , 4 ), ( )],
1135+ [(1 , 2 , 3 , 4 ), (4 ,), (1 , 3 , 4 ), (1 , 4 ), ( )],
1136+ [(4 ,), (0 , 2 , 3 , 4 ), (4 ,), (0 , 2 , 4 ), ( )],
1137+ [(1 , 4 ), (4 ,), (0 , 1 , 3 , 4 ), (1 , 4 ), ( )],
1138+ [(1 , 4 ), (4 ,), (1 , 4 ), (0 , 1 , 2 , 4 ), ( )],
1139+ [(1 ,), (), (1 , ), (1 ,), (0 , 1 , 2 , 3 )],
11351140 ]
11361141
11371142 def test_pairwise_sig_for_mr_x_mr_vs_mr_single_subvar_x_mr (self ):
0 commit comments