Skip to content

Commit 0b63566

Browse files
committed
add ordered set partitions as supported findstat collection
1 parent aa220c4 commit 0b63566

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/sage/databases/findstat.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ def mapping(sigma):
259259
from sage.combinat.colored_permutations import SignedPermutation, SignedPermutations
260260
from sage.combinat.plane_partition import PlanePartition
261261
from sage.combinat.decorated_permutation import DecoratedPermutation, DecoratedPermutations
262+
from sage.combinat.set_partition_ordered import OrderedSetPartition, OrderedSetPartitions
262263

263264
######################################################################
264265
# the FindStat URLs
@@ -4670,7 +4671,13 @@ def name(self, style="singular"):
46704671
for i, v in enumerate(x, 1))) + "]",
46714672
DecoratedPermutations,
46724673
lambda x: x.size(),
4673-
lambda x: isinstance(x, DecoratedPermutation))}
4674+
lambda x: isinstance(x, DecoratedPermutation)),
4675+
"OrderedSetPartitions":
4676+
_SupportedFindStatCollection(lambda x: OrderedSetPartition(literal_eval(x.replace('{','[').replace('}',']'))),
4677+
str,
4678+
OrderedSetPartitions,
4679+
lambda x: x.size(),
4680+
lambda x: isinstance(x, OrderedSetPartition))}
46744681

46754682

46764683
class FindStatCollections(UniqueRepresentation, Parent):

0 commit comments

Comments
 (0)