blaze / blaze/odo

h5py backend bug when append by uri

Open
#563 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1k
Forks
131
PR merge metrics
No merged PRs in 30d

Description

```
data = [[1,2,3],[4,5,6]]
for n in range(3):
print(n)
odo(data, 'tmpdir/new.hdf5::/test')
````
There is a bug in h5py backend. The above code will raise an exception on the 3rd call to odo as follows

```
File "/home/ubuntu/project/venv/lib/python3.5/site-packages/odo/backends/h5py.py", line 238, in resource_h5py
assert dshape == discover(old_dset)
AssertionError
```
Apparently this is because the assertion inadvertently compares the length of the new data and the current length of data already in the dataset.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.