Skip to content

Commit 517e089

Browse files
committed
-
1 parent aca5afc commit 517e089

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

source_py3/python_toolbox/combi/perm_space.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -652,13 +652,14 @@ def index(self, perm):
652652
)
653653
@caching.CachedProperty
654654
def unpartialled(self):
655-
'''A non-partical version of this `PermSpace`.'''
655+
'''A non-partial version of this `PermSpace`.'''
656656
if self.is_sliced:
657657
raise Exception("Can't convert sliced `PermSpace` directly to "
658658
"unpartialled, because the number of items would "
659659
"be different. Use `.unsliced` first.")
660660
return PermSpace(
661-
self.sequence_length, domain=self.domain, fixed_map=self.fixed_map,
661+
self.sequence_length, domain=self.domain,
662+
n_elements=self.sequence_length, fixed_map=self.fixed_map,
662663
degrees=self.degrees, slice_=self.canonical_slice,
663664
is_combination=self.is_combination
664665
)

source_py3/test_python_toolbox/test_combi/test_comb_space.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def test():
2929
assert comb_space.index('er') == comb_space.length - 1
3030
assert comb_space.undapplied == comb_space
3131
assert comb_space.unrapplied == CombSpace(6, 2)
32-
assert comb_space.unpartialled == CombSpace(6, 6)
32+
assert comb_space.unpartialled == CombSpace('dumber', 6)
3333
assert comb_space.uncombinationed == PermSpace('dumber', n_elements=6)
3434
assert comb_space.undegreed == comb_space
3535
assert comb_space.unrapplied.get_rapplied(range(10, 70, 10)) == \

0 commit comments

Comments
 (0)