Skip to content

Commit e8131b4

Browse files
committed
-
1 parent b89e6dc commit e8131b4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

source_py3/python_toolbox/combi/perm_space.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ def __init__(self, iterable_or_length, domain=None, n_elements=None,
245245
self.sequence_length,
246246
start=(self.sequence_length - self.n_elements + 1)
247247
) // (math_tools.factorial(self.n_elements) if
248-
self.is_combination else 1)
248+
self.is_combination else 1)
249249
# This division is always without a remainder, because math.
250250
# #
251251
### Finished doing interim calculation of the length. #################
@@ -276,6 +276,8 @@ def __init__(self, iterable_or_length, domain=None, n_elements=None,
276276

277277
self.is_fixed = bool(self.fixed_map)
278278
if self.is_fixed:
279+
assert not self.is_combination
280+
# (Not implemented, blocked in metaclass)
279281
self._unsliced_undegreed_length = math_tools.factorial(
280282
len(self.free_indices),
281283
start=(len(self.free_indices) -

0 commit comments

Comments
 (0)