Skip to content

Commit b85ee72

Browse files
committed
-
1 parent 33137a1 commit b85ee72

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

source_py3/python_toolbox/combi/perming/_variation_adding_mixin.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,9 @@ def get_degreed(self, degrees):
126126
# slice notation, e.g. perm_space[4:-7].
127127

128128
def get_typed(self, perm_type):
129-
'''Get a version of this `PermSpace` that has a range of `sequence`.'''
130-
if self.is_typed:
131-
old_perm_type = self.perm_type
132-
added_perm_type = perm_type
133-
perm_type = lambda perm: added_perm_type(
134-
old_perm_type(perm))
129+
'''
130+
Get a version of this `PermSpace` where perms are of a custom type.
131+
'''
135132
return PermSpace(
136133
self.sequence, n_elements=self.n_elements, domain=self.domain,
137134
fixed_map=self.fixed_map, degrees=self.degrees,

source_py3/python_toolbox/combi/perming/perm_space.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,14 +355,14 @@ def __init__(self, iterable_or_length, n_elements=None, *, domain=None,
355355
# #
356356
### Finished figuring out slice and length. ###########################
357357

358-
### Figuring out perm processor: ######################################
358+
### Figuring out perm type: ###########################################
359359
# #
360360
self.is_typed = perm_type not in (None, self.default_perm_type)
361361

362362
self.perm_type = perm_type if self.is_typed else self.default_perm_type
363363
assert issubclass(self.perm_type, Perm)
364364
# #
365-
### Finished figuring out perm processor. #############################
365+
### Finished figuring out perm type. ##################################
366366

367367

368368
self.is_pure = not (self.is_rapplied or self.is_fixed or self.is_sliced

0 commit comments

Comments
 (0)