-
-
Notifications
You must be signed in to change notification settings - Fork 482
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
improvements and additions to dyck_words.py #13550
Comments
Changed dependencies from #11641 to none |
Changed keywords from none to dyck_words, noncrossing partitions, parking functions |
comment:2
You should add doctests to all fonctions. And try not to insert new trailing whitespaces. Two doctests are failing. They seem to be caused by changes in other places. Just change them to their new value. |
comment:3
I think I got the trailing whitespaces. I had a mistake when I searched for them before. Christian has asked to resolve a question about if we should join functions of the form .to_xyz_avoiding_permutation() to a .to_permutation() function in https://groups.google.com/d/msg/sage-combinat-devel/jzGHkbcrLec/9WurflNlyEoJ |
comment:4
there should be 3 missing docs : one of them is the and b_statistic and a_statistic, which are no longer tested ! |
comment:5
maybe rather use deprecated_function_alias (see https://github.com/sagemath/sage-prod/files/10655763/trac_13109-documentation.v3.patch.gz) |
comment:6
Thanks! I've added the init doctests and I used the deprecated_function_alias. I also added a check in min_from_heights that the first entry is 0 (as existed in from_heights method). |
This comment has been minimized.
This comment has been minimized.
comment:8
Christian, is your patch supposed to replace the previous one ? |
comment:9
Replying to @fchapoton:
No. I haven't yet checked why my patch doesn't apply on 5.4.rc3. I plan to do this as soon as the sage-combinat queue (containing Mike's last changes) is working again -- I hope this to happen today! |
comment:10
Replying to @stumpc5:
I uploaded the newest version of the patch containing Mike's and my changes. 5.4.rc3 is still compiling, I will check why it doesn't apply there as soon as it's ready (I am still using 5.3 currently). |
comment:11
Apparently, it was patchbot's mistake... I now deleted the trailing whitespaces, and will finish my review tomorrow. Since I was doing many changes, I would then still hope that someone else is looking at these (but I guess Mike could do it as well). Best, Christian |
comment:12
Hi, I'd give this ticket a positive review as is. Nonetheless, I would prefer if someone else is giving his/her okay as well since I made many changes in this ticket myself. Two issues I somehow do not like with Dyck words (but, if desired, should be taken care of in another ticket) are:
Would you expect this behaviour? Are there better solutions for those? Best, Christian |
comment:13
I have looked at Christian's changes and approve. This patch is ready to go. About the two issues:
|
comment:15
Please fill in your real names as Author and Reviewer. |
Changed author from zabrocki to Mike Zabrocki |
Changed reviewer from stumpc5 to Christian Stump |
comment:17
Why the change in
|
comment:18
The change to latex_extra_preamble came from a call to latex.add_package_to_preamble_if_available("tikz"). This was moved into its proper place and the change to latex.py was removed. Christian will upload the patch since I don't have overwrite permission. |
Attachment: trac_13550_dyck_wordsdinv-mz.patch.gz |
comment:19
Replying to @zabrocki:
done! |
comment:20
Tests re-run and all pass. I am restoring the positive review. |
Merged: sage-5.5.beta2 |
comment:22
I do not know who I should send this to, but the following line fails, at least on my computer
This ticket is the last one which modified the .latex function of Dyck words. Nathann |
Add functionality to
DyckWord
andDyckWords
classes including:It moreover makes the distinction (ie implements two different classes
DyckWords_class
andDyckWords_complete
between complete Dyck words and uncomplete ones, since many methods are only defined for complete Dyck words.CC: @zabrocki @sagetrac-DorotaMazur @stumpc5 @hivert
Component: combinatorics
Keywords: dyck_words, noncrossing partitions, parking functions
Author: Mike Zabrocki
Reviewer: Christian Stump
Merged: sage-5.5.beta2
Issue created by migration from https://trac.sagemath.org/ticket/13550
The text was updated successfully, but these errors were encountered: