[sage-support] save/pickle data of cached_method (used in ideals and groebner_basis)

2017-08-12 Thread Daniel Krenn
I have an ideal and computed its Groebner basis (6 hours). Now I want to store this result, which is not the problem itself, but when loading this data, it seems not possible to reconstruct the ideal (meaning create it with the original generators and "bootstrap" the groebner basis found earlier).

[sage-support] Re: save/pickle data of cached_method (used in ideals and groebner_basis)

2017-08-12 Thread Volker Braun
Caches from @cached_method are pickled by default, but the class can opt-out of this. Sometimes this is necessary to make pickling work (not every Cython object is pickle-able). On Saturday, August 12, 2017 at 10:29:16 AM UTC+2, Daniel Krenn wrote: > > I have an ideal and computed its Groebne

Re: [sage-support] Re: save/pickle data of cached_method (used in ideals and groebner_basis)

2017-08-12 Thread Daniel Krenn
On 2017-08-12 11:14, Volker Braun wrote: > Caches from @cached_method are pickled by default, but the class can > opt-out of this. Sometimes this is necessary to make pickling work (not > every Cython object is pickle-able). Hmmmshouldn't the below work then? sage: class A(SageObject): :

Re: [sage-support] Re: save/pickle data of cached_method (used in ideals and groebner_basis)

2017-08-12 Thread Daniel Krenn
On 2017-08-12 12:10, Daniel Krenn wrote: > On 2017-08-12 11:14, Volker Braun wrote: >> Caches from @cached_method are pickled by default, but the class can >> opt-out of this. Sometimes this is necessary to make pickling work (not >> every Cython object is pickle-able). > > Hmmmshouldn't the b