Skip to content

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

Merged
merged 8 commits into from
May 4, 2017
Merged

Conversation

gdementen
Copy link
Contributor

also contains other misc improvements

@gdementen gdementen requested a review from alixdamman May 4, 2017 08:08
a0 | 0 | 1 | 2
a1 | 3 | 4 | 5
a2 | 6 | 7 | 8
>>> arr.reindex(arr2.axes, fill_value=0)
a\\b | b0 | b1 | b2
Copy link
Contributor Author

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
Copy link
Collaborator

@alixdamman alixdamman left a 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`).

Copy link
Collaborator

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 ?

Copy link
Contributor Author

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'])

Copy link
Collaborator

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indeed

@gdementen
Copy link
Contributor Author

I now know the way I want to fix #241, but I am unsure we should do it for this release.

@alixdamman
Copy link
Collaborator

OK, #241 will be fixed in the next release (0.23)

@gdementen gdementen merged commit 9a5ee0f into larray-project:master May 4, 2017
@gdementen gdementen deleted the to_pickle branch May 4, 2017 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants