-
Notifications
You must be signed in to change notification settings - Fork 61
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
Reading H5DF files is broken #589
Comments
I can reproduce this in DirtyDuck. Calling
gives
outputs the matrix. So maybe something about the shape of the index is throwing off the code that's trying to read the header, which is
|
Honestly, start=0 and stop=0 seems to work head_of_matrix = pd.read_hdf(ms.matrix_base_store.path, start=0, stop=0) returns:
|
Pandas' read_hdf does not implement a method for only loading the first n rows that works reliably on different datasets, particularly with multi-indices. This is problematic because head_of_matrix is how the MatrixStore implements empty() and columns() methods. Instead of implementing head_of_matrix, we implement empty() and columns() on HDFStore directly, obviating the need for a head_of_matrix method that only reads the first row.
Writing matrices to disk was completed succesfully, but when
triage
tries to read the matrices:The libraries installed are:
The text was updated successfully, but these errors were encountered: