-
Notifications
You must be signed in to change notification settings - Fork 6
implemented Session.to_pickle #242
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
Conversation
cPickle was never used on Python2 because pickle exists :)
(ie check that array order is preserved)
a0 | 0 | 1 | 2 | ||
a1 | 3 | 4 | 5 | ||
a2 | 6 | 7 | 8 | ||
>>> arr.reindex(arr2.axes, fill_value=0) | ||
a\\b | b0 | b1 | b2 |
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.
oups :) I need to change this :)
added more explanations for a few points, and moved stuff around
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.
Given we merge this PR, do you want me to fix #241 before to release?
it includes the number of values, mean, standard deviation, minimum, 25, 50 and 75 percentiles and maximum. | ||
* viewer: added a menu bar with the ability to clear the current session, save all its arrays to a file (.h5, .xlsx, | ||
.pkl or a directory containing multiple .csv files), and load arrays from such a file (closes :issue:`88`). | ||
|
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.
.pkl will contain more than the arrays ? Like user defined axes or groups ?
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.
no, it currently contains only the arrays, like other formats.
self.session.save(fpath) | ||
s = Session() | ||
s.load(fpath, engine='pickle') | ||
self.assertEqual(list(s.keys()), ['e', 'g', 'f']) | ||
|
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.
So here the saved/loaded session contains only LArray objects?
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.
indeed
I now know the way I want to fix #241, but I am unsure we should do it for this release. |
OK, #241 will be fixed in the next release (0.23) |
also contains other misc improvements