-
-
Notifications
You must be signed in to change notification settings - Fork 481
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
[postiive review] Family does copy its input + various improvement. #5538
Comments
Attachment: family_improve-fh-5538-submitted.patch.gz |
comment:2
The uploaded patch improve family in several ways.
Cheers, Florent |
Attachment: family_doc_fix-final.patch.gz Doc fix |
This comment has been minimized.
This comment has been minimized.
comment:3
Since the file is moved, the patch is not very useful. I added a diff from the former |
Attachment: family.diff.gz Difference of family.py before and after the patch. |
comment:4
On irc, it was decided that we should take chance of this patch to finish the cleanup of the interface of family. I've taken care of this but several issues are still open:
Is this ok ? In particular the last one used to be printed
I find
Cheers, Florent |
comment:5
Agreed on 1, 2, 3. I very much like the printing in 2. Just two suggestions in TrivialFamily:
|
Attachment: family_interface-cleanup-fh-final.patch.gz Cleanup of the interface. |
Attachment: family_adapt-fh-final.patch.gz Adapted root system with the new interface |
comment:7
The current versions of the patch should be definitive ! Please review. The last two clean the interface up and adapt part of combinat and in particular root-systems to the new interface. The test should runs without deprecation warning. Cheers, Florent |
comment:8
Attachment: family_review.patch.gz Positive review. Florent: please update the summary accordingly, after double checking my (trivial) review patch. It needs to be applied last. Michael: do you mind setting the gard +3_4_1 on the patch server just after the merge? |
comment:9
I meant: +3_4_1 or +3_4_2 depending on where it goes of course. |
comment:10
Reviewed the review patch. All light green Florent |
comment:11
Dear Michael, If it's still possible I'd like to see this one merged in 3.4.1. Cheers, Florent |
comment:13
This patch breaks a lot of pickles:
Cheers, Michael |
comment:14
Oups ! The problem is due to a file which has been moved and a class which has been renamed. Everything was ready to correctly pickle, but I mixed things up in my backward compatibility import links. I just updated a simple patch which solve the problem on my machine. Michael: can you review it ? You are the master of checking pickle ! I'm still hoping to be in time for 3.4.1 ... Sorry for the mess, Florent |
Fixing the Pickle + Minimal doc header. |
comment:15
Attachment: family_pickle_fix-fh.patch.gz Positive review for the pickle fix patch. The five patches together make the test suite pass. Cheers, Michael |
comment:16
Merged
in Sage 3.4.1.rc3. Cheers, Michael |
When family got a dictionary it does not copy it's input so that one can modify it. Before the patch we had the following wrong behavior:
This is now corrected.
The second improvement is that list, and tuple can now be transformed to family indexed by
0..n
with the class TrivialFamily;The third improvement is that FiniteCombinatorialClass is now fully compatible with family.
A Fourth improvement is that for lazy family the pickling of the function or the attrcall is done as far as possible. And example of a case where it is not possible to work has been added.
Finally since family has noting to do with combinatorics, I moved this to the more sensible sage.set.
Author: Florent Hivert
CC: @sagetrac-sage-combinat
Component: combinatorics
Keywords: Family, mutable input
Issue created by migration from https://trac.sagemath.org/ticket/5538
The text was updated successfully, but these errors were encountered: