#7922: Pickling fails in WeightRing
--------------------------------------------------+-------------------------
Reporter: nthiery | Owner: bump
Type: defect | Status: needs_review
Priority: major | Milestone: sage-4.7
Component: combinatorics | Keywords:
Author: | Upstream: N/A
Reviewer: nthiery | Merged:
Work_issues: pickle jar will have to be rebuilt |
--------------------------------------------------+-------------------------
Old description:
> First issue caught by #7921:
>
> {{{
> sage: A2 = WeylCharacterRing(['A',2])
> sage: a2 = WeightRing(A2)
> sage: TestSuite(a2).run()
> Failure in _test_element_pickling:
> Traceback (most recent call last):
> ...
> AssertionError: 2*a2(0,0,0) != 2*a2(0,0,0)
> }}}
>
> Indeed:
> {{{
> sage: x = a2.an_element()
> sage: x == loads(dumps(x))
> False
> }}}
>
> I assume that this is an issue in equality test. This should be fixed for
> free when WeightRing's will use CombinatorialFreeModules
> and categories.
>
> Apply:
>
> {{{
> trac_7922-rebased-4.6.1
> trac_7922-doc.patch
> }}}
New description:
First issue caught by #7921:
{{{
sage: A2 = WeylCharacterRing(['A',2])
sage: a2 = WeightRing(A2)
sage: TestSuite(a2).run()
Failure in _test_element_pickling:
Traceback (most recent call last):
...
AssertionError: 2*a2(0,0,0) != 2*a2(0,0,0)
}}}
Indeed:
{{{
sage: x = a2.an_element()
sage: x == loads(dumps(x))
False
}}}
I assume that this is an issue in equality test. This should be fixed for
free when WeightRing's will use CombinatorialFreeModules
and categories.
Apply only
{{{
trac_7922-rebased-4.7.alpha1.patch
}}}
--
Comment(by bump):
I have posted trac_7922-rebased-4.7.alpha1.patch, which
addresses many of the comments in the reviewer patch:
http://combinat.sagemath.org/patches/file/tip/trac_7922-review-nt.patch
Those changes that are not addressed are discussed here:
http://groups.google.com/group/sage-combinat-
devel/browse_thread/thread/277e146862632d72
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7922#comment:8>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.