Skip to content

serialization of pycont objects #165

@gaspar-hp

Description

@gaspar-hp

Hello!
First of all, thanks for the great work.
I'm having trouble serializing cont objects, I know its a difficult thing, but I was able to do it one and a half years ago using dill. Somehow it is not possible anymore. the error I am getting is

PicklingError: Can't pickle <class 'sys.version_info'>: it's not the same object as sys.version_info

and I think it is related to the import of the mentioned class somewhere in the files produced by swig when it compiles the modules for LC curves in AUTO, since cont objects without LC curves can be serialized. I am not really a skilled programmer to debug this, but it was really useful to be able to serialize the whole thing. Maybe the way swig works changed and it has nothing to do with pydstool, but it would be great if you can point me in the way to find a workaround.
Thanks again, it is a great tool.
GH

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions