cl3...@columbia.edu
unread,Mar 21, 2017, 12:14:02 PM3/21/17Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to diffpy-dev
I was hoping to store my refinement results and it comes to my mind if I can serialize FitRecipe objects then all the necessary information is recoverable, like G_gal and parameter values.
I tried to pickle the FitRecipe/FitResults objects. The ``pickle.dump`` step is possible, but when I wanted to ``pickle.load``, it gives me following error when recovering both FitRecipe/FitResults
````
/Users/timothyliu/miniconda3/envs/diffpy/lib/python2.7/site-packages/diffpy.srfit-1.2-py2.7.egg/diffpy/srfit/util/weakrefcallable.pyc in __hash__(self)
86
87 def __hash__(self):
---> 88 return hash((self.function, self._wref))
89
90
AttributeError: function
````
Here is my diffpy-cmi version (conda install from diffpy channel)
````
diffpy-cmi 2.0.2 0 diffpy
````
Is there any way I can serialize FitRecipe objects? Thanks.