--
You received this message because you are subscribed to the Google Groups "diffpy-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to diffpy-dev+unsubscribe@googlegroups.com.
To post to this group, send email to diffp...@googlegroups.com.
Visit this group at https://groups.google.com/group/diffpy-dev.
For more options, visit https://groups.google.com/d/optout.
Hi Tim,It is a bug, serialization of FitRecipe objects should work.Can you isolate a minimum example that reproduces the bug and post itas a new issue at https://github.com/diffpy/diffpy.srfit/issues ?I suspect it is some constraint function in your recipe that exposes the bug.Thank you,Pavol
On Sun, Mar 19, 2017 at 3:53 PM, <cl3...@columbia.edu> wrote:
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.
--
You received this message because you are subscribed to the Google Groups "diffpy-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to diffpy-dev+...@googlegroups.com.