Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add ordered set partitions as supported findstat collection #36096

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/sage/databases/findstat.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ def mapping(sigma):
from sage.combinat.colored_permutations import SignedPermutation, SignedPermutations
from sage.combinat.plane_partition import PlanePartition
from sage.combinat.decorated_permutation import DecoratedPermutation, DecoratedPermutations
from sage.combinat.set_partition_ordered import OrderedSetPartition, OrderedSetPartitions

######################################################################
# the FindStat URLs
Expand Down Expand Up @@ -4670,7 +4671,13 @@ def name(self, style="singular"):
for i, v in enumerate(x, 1))) + "]",
DecoratedPermutations,
lambda x: x.size(),
lambda x: isinstance(x, DecoratedPermutation))}
lambda x: isinstance(x, DecoratedPermutation)),
"OrderedSetPartitions":
_SupportedFindStatCollection(lambda x: OrderedSetPartition(literal_eval(x.replace('{','[').replace('}',']'))),
str,
OrderedSetPartitions,
lambda x: x.size(),
lambda x: isinstance(x, OrderedSetPartition))}


class FindStatCollections(UniqueRepresentation, Parent):
Expand Down
Loading