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
P-partition enumerators in QSym #14136
Comments
P-partition enumerators for QSym |
Changed keywords from QSym, P-partitions, posets to QSym, P-partitions, posets, days45 |
comment:1
Attachment: ppart.py.gz |
comment:3
You need to choose where to put this function :
Once this choice is made, please upload a patch rather than a python file You need a white line after the EXAMPLES:: |
comment:4
here is a patch. There remains a deprecation warning that need to be taken care of. |
comment:5
Thank you, Frédéric! What exactly is deprecated? (I'm at work now so I can't compile.) |
comment:6
new patch, better doc, almost pass tests, but I have not been able to solve this deprecation problem. It may come from the line QR=QuasiSymmetric(R). |
comment:7
I confirm that the DeprecationWarning comes from the line
But I am not able so far to understand exactly what the problem is. |
comment:8
hg is driving me nuts...
I was trying to install the patch on a fresh sage-5.9rc1, main branch (due to QSym being involved). EDIT: Oh... should I just manually replace "combinat" by "sage" in the patch file? |
comment:9
you should be in '/home/darij/sage-5.9.rc1/devel/sage-main' to use hg |
Attachment: trac_14136_p_partition_enumerator_v1.patch.gz |
comment:10
still the same failing doctest with 5.10.beta1 .. |
comment:11
Thanks for the help with hg!! I can confirm the annoying |
comment:12
Attachment: trac_14136-p_partition_enumerator-review-ts.patch.gz I've uploaded a small review patch which does some additional tweaks to the documentation and removes the print statements. I'm also getting the same error, and even adding this method above it:
the error gets pushed into this method. I'm thinking we should post something to sage-devel about this (since the error cannot be reproduced in sage), and as a possible solution, just copy the output of the doctest with a comment about it basically saying we have no idea what is happening. Best, Travis |
comment:13
Hello, thanks for getting involved in this patch. Have you asked the question on sage-devel ? You have introduced a typo "parition" in your review patch. |
comment:14
Hey, Here's the topic: https://groups.google.com/forum/?fromgroups#!topic/sage-devel/wQoCEeKrZ3w I'll fix the typo once we figure out what to do with the deprecation warning. |
comment:15
Without the patches, there does appear to be deprecations associated with the
A Traceback of the warning may be obtained by converting warnings to errors, i.e.
which is fairly lengthy. It is curious that the patches now expose the warning. FWIW, the
|
comment:16
Replying to @strogdon:
Where/how did you see this? In particular, was this placed in another doctest somewhere?
Hmmm, I didn't know that (kinda cool). I'll take a look at it. Thanks. |
comment:17
Here's the backtrace I got:
It seems like the |
comment:18
There seems to be one other place in Sage where
This looks very much like the above backtrace, but of course the |
comment:19
For the records, here is where the warning comes from. The BindableClass things
I had never noticed this. Please explore what's the best workaround! |
comment:20
This is somewhat non-intuitive but the following seems to work
or
This perhaps suggests the
instead of
I don't know whether this breaks anything? |
comment:21
maybe this should be tried and solved in another ticket ? the purpose of the present one is only to introduce something new related to posets and quasi-symmetric functions ? |
comment:22
Replying to @fchapoton:
You're right. This is now ticket #14748 |
comment:23
Since the problem has been isolated to #14748 (I've added it as a dependency), I'm thinking we should set this to positive review. Any objections? |
Changed author from darij to Darij Grinberg |
Reviewer: Frederic Chapoton, Travis Scrimshaw |
Dependencies: #14748 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
comment:25
the review patch introduces a typo "parition", that needs to be corrected |
This comment has been minimized.
This comment has been minimized.
Attachment: trac_14136-p_partition_enumerator_folded.patch.gz folded with Travis's review |
comment:27
it was not necessary to fold. The typo is still there |
comment:28
Chapoton: thanks, done (edited the folded version). |
comment:29
I don't see the typo in the folded patch, so I'm going to set this to positive review. Apply: trac_14136-p_partition_enumerator_folded.patch |
Changed keywords from QSym, P-partitions, posets, days45 to QSym, P-partitions, posets, days45, days49 |
comment:31
Frédéric and Travis: thank you! |
Merged: sage-5.12.beta2 |
comment:34
missing accents |
Changed reviewer from Frederic Chapoton, Travis Scrimshaw to Frédéric Chapoton, Travis Scrimshaw |
Or did someone already implement them?
Here's my code. Its weakest point is probably the input; instead of an actual pair of a poset and a map from its elements to {1,2,3,...}, it takes a pair of a poset and a linear order on it represented as a tuple of its elements. (See docstring for details. By the way, I'm hoping the LaTeX does work... no idea how to check that.)
Apply:
Depends on #14748
CC: @saliola
Component: combinatorics
Keywords: QSym, P-partitions, posets, days45, days49
Author: Darij Grinberg
Reviewer: Frédéric Chapoton, Travis Scrimshaw
Merged: sage-5.12.beta2
Issue created by migration from https://trac.sagemath.org/ticket/14136
The text was updated successfully, but these errors were encountered: