We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e960a5b commit 2eb645bCopy full SHA for 2eb645b
source_py3/python_toolbox/combi/perm_space.py
@@ -628,7 +628,8 @@ def __getitem__(self, i):
628
wip_i -= candidate_sub_perm_space.length
629
del wip_perm_sequence_dict[j]
630
else:
631
- raise RuntimeError
+ if len(wip_perm_sequence_dict) < self.n_elements:
632
+ raise RuntimeError
633
assert wip_i == 0
634
return self.perm_type(
635
dict_tools.get_list(wip_perm_sequence_dict, self.domain),
0 commit comments