-
Notifications
You must be signed in to change notification settings - Fork 6
Closed
Description
Doing:
git clone git@github.com:bootphon/h5features.git
cd h5features
python setup.py build && python setup.py install
pytest -v ./test
All tests pass except for test_reader.py::test_read_tofromtimes[2]:
====================================================================== FAILURES =======================================================================
______________________________________________________________ test_read_tofromtimes[2] _______________________________________________________________
tmpdir = local('/tmp/pytest-of-tschatz/pytest-0/test_read_tofromtimes_2_0'), dim = 2
@pytest.mark.parametrize('dim', [1, 2, 10])
def test_read_tofromtimes(tmpdir, dim):
filename = os.path.join(str(tmpdir), 'test.h5f')
groupname = 'group'
data = generate.full_data(1, dim, 300)
h5f.Writer(filename, mode='w').write(data, groupname=groupname)
data2 = h5f.Reader(filename, groupname).read()
assert data == data2
data3 = h5f.Reader(filename, groupname).read(from_time=0, to_time=1)
assert data3 == data
data4 = h5f.Reader(filename, groupname).read(from_time=0.4, to_time=0.5)
#print data4.labels()
> assert data4.labels()[0][0] >= 0.4
E IndexError: index 0 is out of bounds for axis 0 with size 0
test/test_reader.py:84: IndexError
======================================================== 1 failed, 113 passed in 4.62 seconds =========================================================
When I did pytest -v ./test again, all tests worked.
Not sure what happened, but I thought I would signal it, in case it happens again.
Metadata
Metadata
Assignees
Labels
No labels