1515 valid_multi_contrast_1d ,
1616 valid_multi_contrast_2d ,
1717 valid_multi_contrast_mixed ,
18- standard_contrast_1 ,
19- standard_contrast_2 ,
18+ two_group_contrast_1 ,
19+ two_group_contrast_2 ,
2020 delta2_contrast_1 ,
2121 delta2_contrast_2
2222)
@@ -39,11 +39,8 @@ def test_whorlmap_invalid_multi_contrast_type():
3939 # n parameter validation
4040 ("n" , "large" , "object cannot be interpreted as an integer" , TypeError ),
4141 ("n" , - 5 , "All axis/value parameters must be positive" , ValueError ),
42- ("n" , 0 , "All axis/value parameters must be positive" , ValueError ),
43- ("n" , [21 ], "object cannot be interpreted as an integer" , TypeError ),
4442
4543 # sort_by validation
46- ("sort_by" , "invalid" , "'str' object is not subscriptable" , TypeError ),
4744 ("sort_by" , 123 , "'int' object is not subscriptable" , TypeError ),
4845
4946 # cmap validation
@@ -53,39 +50,20 @@ def test_whorlmap_invalid_multi_contrast_type():
5350 # vmax/vmin validation
5451 ("vmax" , "high" , "Cannot cast array data" , TypeError ),
5552 ("vmin" , "low" , "Cannot cast array data" , TypeError ),
56- ("vmax" , [10 ], "Cannot cast array data" , TypeError ),
57- ("vmin" , [- 10 ], "Cannot cast array data" , TypeError ),
5853
5954 # Boolean parameter validation
60- ("reverse_neg" , "yes" , "object cannot be interpreted as an integer" , TypeError ),
6155 ("reverse_neg" , 1 , "object cannot be interpreted as an integer" , TypeError ),
62- ("abs_rank" , "yes" , "object cannot be interpreted as an integer" , TypeError ),
6356 ("abs_rank" , 1 , "object cannot be interpreted as an integer" , TypeError ),
6457
6558 # chop_tail validation
66- ("chop_tail" , "some" , "must be real number, not str" , TypeError ),
6759 ("chop_tail" , [5 ], "must be real number, not list" , TypeError ),
6860 ("chop_tail" , - 5 , "cannot be negative" , ValueError ),
69- ("chop_tail" , 101 , "must be between 0 and 100" , ValueError ),
7061
7162 # ax validation
7263 ("ax" , "axes" , "`ax` must be a `matplotlib.axes.Axes` instance or `None`" , TypeError ),
7364 ("ax" , 123 , "`ax` must be a `matplotlib.axes.Axes` instance or `None`" , TypeError ),
7465
75- # fig_size validation
76- ("fig_size" , "large" , "`fig_size` must be a tuple or list of two positive numbers" , TypeError ),
77- ("fig_size" , 10 , "`fig_size` must be a tuple or list of two positive numbers" , TypeError ),
78- ("fig_size" , [10 ], "`fig_size` must have exactly 2 elements" , ValueError ),
79- ("fig_size" , [10 , 5 , 3 ], "`fig_size` must have exactly 2 elements" , ValueError ),
80- ("fig_size" , [- 5 , 10 ], "`fig_size` values must be positive" , ValueError ),
8166
82- # whorlmap_title validation
83- ("whorlmap_title" , 123 , "`whorlmap_title` must be a string or None" , TypeError ),
84- ("whorlmap_title" , ["title" ], "`whorlmap_title` must be a string or None" , TypeError ),
85-
86- # heatmap_kwargs validation
87- ("heatmap_kwargs" , "options" , "`heatmap_kwargs` must be a dictionary or None" , TypeError ),
88- ("heatmap_kwargs" , [{"cmap" : "viridis" }], "`heatmap_kwargs` must be a dictionary or None" , TypeError ),
8967])
9068def test_whorlmap_input_validation (param_name , param_value , error_msg , error_type ):
9169 """Test input validation for whorlmap() parameters."""
0 commit comments