File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
test_python_toolbox/test_combi Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -793,6 +793,9 @@ def index(self, perm):
793793
794794
795795 elif self .is_combination :
796+ if perm .is_rapplied or perm .is_dapplied :
797+ return self .unrapplied .undapplied .index (perm )
798+
796799 processed_perm_sequence = tuple (
797800 self .sequence_length - 1 -
798801 item for item in perm ._perm_sequence [::- 1 ]
Original file line number Diff line number Diff line change @@ -170,11 +170,8 @@ def _check_variation_selection(variation_selection):
170170 )
171171
172172 if perm_space .length >= 2 :
173- assert perm_space [- 1 ] >= perm_space [0 ]
174- assert perm_space [- 1 ] > perm_space [0 ]
175- assert perm_space [0 ] <= perm_space [- 1 ]
176- assert perm_space [0 ] < perm_space [- 1 ]
177- assert perm_space [0 ] != perm_space [- 1 ]
173+ assert perm_space .index (perm_space [- 1 ]) > \
174+ perm_space .index (perm_space [0 ])
178175
179176
180177 if variation_selection .is_partial :
You can’t perform that action at this time.
0 commit comments