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
wrong cardinality in PartitionDiagrams #25642
Comments
Dependencies: #25462 |
Commit: |
New commits:
|
Author: Martin Rubey |
comment:3
I do not know whether the strange behaviour observed in the description is something that needs fixing, nor how to do it, if so... |
comment:4
Why does this depend on #25462?
|
comment:5
I'm getting doctest failures on lines 1229 and 1587 because of the order of the output. |
comment:6
Replying to @tscrim:
Because after #25462 the output order changes, and there is no point in changing the doctests twice. But if you wish, I can do this, too.
OK, great! |
comment:9
I noticed this problem in the tests on Python 3, where the problem becomes more pronounced due to slightly different code paths covered by the tests. |
comment:10
Since this depends on #25462, I'll rebase your branch on top of it. The rest looks like it makes sense to me. |
Changed branch from u/mantepse/wrong_cardinality_in_partitiondiagrams to u/embray/ticket-25642 |
comment:11
I rebased this on top of #25462, but I still had to update a couple of the doctests. Last 10 new commits:
|
comment:12
Warning: please note also #25662... (are you touching |
Reviewer: Erik Bray, Travis Scrimshaw |
comment:13
Martin, you were the one who tweaked the Something closer to bikeshedding, but I would want changed before a positive review is splitting the lines for the - raise NotImplementedError("from_involution_permutation_triple is only implemented for Brauer diagrams of integer order, not for order %s" %(self.order))
+ raise NotImplementedError("only implemented for integer order,"
+ " not for order %s" % (self.order)) and same for |
comment:14
I'm a little confused--should this also be tweaked to merge cleanly with #25662? |
Changed branch from u/embray/ticket-25642 to u/mantepse/ticket-25642 |
comment:16
Replying to @embray:
No, if I recall correctly, I made this ticket a dependency of #25662. So this ticket should go in first, then #25659 (which is independent of this ticket), and finally #25662. New commits:
|
comment:17
Thank you. |
comment:18
Wow, that was quick! |
Changed branch from u/mantepse/ticket-25642 to |
There is a simple bug and a strange behaviour:
The implementation of
PartitionDiagrams.cardinality
is a trivial mistake, and easy to fix. It currently reads:but should be
However, I do not understand why, after invoking
PartitionDiagrams(2.5).list()
, the method fromfinite_enumerated_sets
is used, and I do not understand why this is not the case when invokinglist(PartitionDiagrams(2.5))
.Depends on #25462
CC: @alauve @tscrim @zabrocki
Component: combinatorics
Author: Martin Rubey
Branch/Commit:
f54b339
Reviewer: Erik Bray, Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/25642
The text was updated successfully, but these errors were encountered: