-
Notifications
You must be signed in to change notification settings - Fork 56
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
Allow saving coordinate trajectory on disk #327
Allow saving coordinate trajectory on disk #327
Conversation
@t-young31 I am not quite sure how to implement the initialisation of the optimiser history file. Would be interested to hear if you think there are better ways to initialise the file interface. |
return None | ||
|
||
@staticmethod | ||
def _coords_to_bytes(coords: OptCoordinates) -> bytes: |
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.
this is lots of effort. why not pickle?
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.
@t-young31 Pickling is said to be unsafe in the sense that it can run arbitrary code while unpickling. Given the feature of reading back an old saved trajectory from disk, it seems better to serialise manually. What do you think?
Checklist