#8388: pickle the paths of Rauzy diagrams
-----------------------------------------+----------------------------------
       Reporter:  vdelecroix             |         Owner:  vdelecroix  
           Type:  defect                 |        Status:  needs_review
       Priority:  major                  |     Milestone:  sage-5.3    
      Component:  combinatorics          |    Resolution:              
       Keywords:  pickle,  nested class  |   Work issues:              
Report Upstream:  N/A                    |     Reviewers:              
        Authors:  vdelecroix             |     Merged in:              
   Dependencies:  #8386                  |      Stopgaps:              
-----------------------------------------+----------------------------------

Old description:

> There is a pickle error with the nested class RauzyDiagram.Path in
> sage.combinat.iet.template
>
> {{{
> sage: p = iet.Permutation('a b c','c b a')
> sage: r = p.rauzy_diagram()
> sage: g = r.path(p, 't', 'b')
> sage: dumps(g)
> PicklingError Traceback(most recent call last)
> ...
> PicklingError: Can't pickle <class 'sage.combinat.iet.labelled.Path'>:
> attribute lookup sage.combinat.iet.labelled.Path failed
> }}}
>
> A __metaclass__ must be defined for RauzyDiagram.
>
> The ticket depends on #8386 which moves the module for interval exchange
> transformations from sage.combinat.iet to
> sage.dynamics.interval_exchanges

New description:

 There is a pickle error with the nested class RauzyDiagram.Path in
 sage.combinat.iet.template

 {{{
 sage: p = iet.Permutation('a b c','c b a')
 sage: r = p.rauzy_diagram()
 sage: g = r.path(p, 't', 'b')
 sage: dumps(g)
 PicklingError Traceback(most recent call last)
 ...
 PicklingError: Can't pickle <class 'sage.combinat.iet.labelled.Path'>:
 attribute lookup sage.combinat.iet.labelled.Path failed
 }}}

 A __metaclass__ must be defined for RauzyDiagram.

 The ticket depends on #8386 which moves the module for interval exchange
 transformations from sage.combinat.iet to sage.dynamics.interval_exchanges

 Apply [attachment:trac_8388_pickling_path.patch]

--

Comment (by chapoton):

 apply trac_8388_pickling_path.patch

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8388#comment:13>
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.

Reply via email to