FiPy,
I am unable to read pickled dump files from simulations with a
PeriodicGrid2DLeftRight mesh using FiPy version '3.0-dev5303'. I use the
fipy.dump function to save the mesh and variables for postprocessing, but I
receive the following output when I try to unpickle the mesh using
fipy.dump.read:
Traceback (most recent call last):
File "postprocess.py", line 52, in <module>
mesh = dump.read(filename='PickleJar/mesh.grid2D')
File
"/opt/lib/python2.6/site-packages/FiPy-3.0_dev5303-py2.6.egg/fipy/tools/dump.py",
line 151, in read
return unpickler.load()
File
"/lib/python2.6/site-packages/FiPy-3.0_dev5303-py2.6.egg/fipy/meshes/abstractMesh.py",
line 984, in __setstate__
return state["_RepresentationClass"].setstate(self, state)
File
"/opt/lib/python2.6/site-packages/FiPy-3.0_dev5303-py2.6.egg/fipy/meshes/representations/gridRepresentation.py",
line 55, in setstate
mesh.__init__(**state)
TypeError: __init__() got an unexpected keyword argument '_RepresentationClass'
I receive a similar error when I attempt to unpickle cell variables with
PeriodicGrid2D meshes. This error does not occur when unpickling standard
Grid2D meshes and cell variables.
Any suggestions?
Thanks,
Dave
_______________________________________________
fipy mailing list
[email protected]
http://www.ctcms.nist.gov/fipy
[ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]