Skip to content
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

PyCont not being pickable #48

Open
mdepitta opened this issue Aug 19, 2014 · 1 comment
Open

PyCont not being pickable #48

mdepitta opened this issue Aug 19, 2014 · 1 comment
Labels

Comments

@mdepitta
Copy link

When attempting to save PyCont (ContClass) objects, method saveObject gives error:

Example:
(import PyDSTool as dst)
DSargs - ode system;
ode - generator
traj - trajectory
pts - some points
PC - ContClass object

$ dst.saveObjects([DSargs,ode,traj,pts,PC],'chain3.sav',force=True)

Error:

TypeError Traceback (most recent call last)
dst.saveObjects([DSargs,ode,traj,pts,PC],'chain3.sav',force=True)
/home/maurizio/Downloads/PyDSTool/utils.pyc in saveObjects(objlist, filename, force)
628 for obj in objlist:
629 try:
--> 630 pickle.dump(obj, pklfile, opt)
631 except:
632 if hasattr(obj, 'name'):

TypeError: expected string or Unicode object, NoneType found

Failed to save object 'ContClass of model chain3'


If I leave out the PC object from my list instead, everything seem to work fine.

@mdlama mdlama added the bug label Aug 26, 2014
@robclewley
Copy link
Owner

dill may now be able to serialize PyCont, according to this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants