Skip to content

Commit

Permalink
fixed append test for SparseDataset
Browse files Browse the repository at this point in the history
  • Loading branch information
falexwolf committed Feb 17, 2018
1 parent 19cbe1b commit 366a370
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions anndata/tests/h5py_.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ def test_dataset_append():
appended_matrix = ss.vstack((sparse_matrix, to_append))

with h5py.File(h5_path) as h5f:
h5f.create_dataset('matrix', data=sparse_matrix, chunks=(100000,),
maxshape=(None,))
h5f.create_dataset('matrix', data=sparse_matrix, chunks=(100000,))
h5f['matrix'].append(to_append)
assert (h5f['matrix'].value != appended_matrix).size == 0

Expand Down

0 comments on commit 366a370

Please sign in to comment.