Closed ytsapras closed 1 year ago
Hi Yiannis,
Did you ever find a solution to this? I'm simply trying to pickle a your_event.fits[0] object so I can replot it later and I get the same error:
PicklingError Traceback (most recent call last)
<ipython-input-33-381a5798d73f> in <module>
2 import pickle
3 with open('pylima_usbl.pkl', 'wb') as file:
----> 4 pickle.dump(your_event.fits[0], file)
5 file.close()
PicklingError: Can't pickle <class 'pyLIMA.microloutputs.Fit_outputs'>: attribute lookup Fit_outputs on pyLIMA.microloutputs failed
Hi Josh, I haven't encountered this problem again but maybe Etienne can comment on this. In any case, I have switched to using the new version of pyLIMA (ReBranding branch), which comes with easier plotting options. I think there are no plans to support the first release once the new version is official so if you want to test things out, I suggest checking out the ReBranding branch and playing with it to identify any potential bugs there.
Note that some of the commands have changed in the new release, but you can look at the examples/
Hi Yiannis, Thx...I didn't realise there was a newer branch, so I'll give that a go. I spent a bunch of time writing some code to output some pngs/pdfs with geometry/zooms etc the way I want but I'll see what's in the new release..
code complains if once a single model has been fit and .produce_output called, a second model is attempted with multiprocessing.