-
Notifications
You must be signed in to change notification settings - Fork 5
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
Update sol
save/load; add test
#198
Conversation
So That said, would this issue still arise if you used a class / function to specify the scale-height in fit.py instead of |
Ah ok I see. I was using I've reverted |
I'd probably choosing something slightly more flexible, e.g. a power law with a cut off. Maybe: |
Ok I implemented the power law in #195. This PR has very minor changes then, ready for review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add back the save/load test? It will catch problems with pickle should they arise again.
Sure, done in 3e79f22 |
I ran into an issue saving/loading a sol object from a debris fit --
pickle
was struggling to interpretsol._vis_map._scale_height
as a function:saving:
AttributeError: Can't pickle local object '<some function for H(R)>'
loading:
OSError: Failed to interpret file '<some path>_frank_sol.obj' as a pickle
Replacing
pickle
withdill
resolves this. PR changes:io.py
: Updatespickle
calls todill
tests.py
: Adds test for save/load of a sol from a standard and debris fit