Skip to content
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

Forward non-sparse data to h5py #8

Merged
merged 4 commits into from
May 25, 2018

Conversation

yuyang-huang
Copy link
Contributor

  • In Group.create_dataset(), test if data is a scipy sparse matrix. If not, forward the arguments to h5py and return h5py.Dataset.
  • Add __contains__ to Group.

Copy link
Contributor

@ianlini ianlini left a comment

Choose a reason for hiding this comment

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

Could you add some unit tests for this?

@@ -36,6 +36,9 @@ class Group(object):
def __init__(self, h5py_group):
self.h5py_group = h5py_group

def __contains__(self, item):
return self.h5py_group.__contains__(item)
Copy link
Contributor

Choose a reason for hiding this comment

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

I prefer return item in self.h5py_group

@ianlini
Copy link
Contributor

ianlini commented May 25, 2018

This PR will resolve #7 and .__contains__() in #5.

@ianlini ianlini merged commit cd7517a into appier:master May 25, 2018
@ianlini ianlini added this to the 0.0.5 milestone May 25, 2018
@yuyang-huang yuyang-huang deleted the enable-non-sparse branch May 25, 2018 09:30
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