We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ecc35b commit 7bba084Copy full SHA for 7bba084
test/containers/hdf5dataset.jl
@@ -2,9 +2,8 @@ function setup_hdf5dataset_test()
2
datasets = [
3
("d1", rand(2, 10)),
4
("g1/d1", rand(10)),
5
- # these are broken at HDF5 level
6
- # ("g1/d2", string.('a':'j')),
7
- # ("g2/g1/d1", "test")
+ ("g1/d2", string.('a':'j')),
+ ("g2/g1/d1", "test")
8
]
9
10
fid = h5open("test.h5", "w")
@@ -20,7 +19,7 @@ end
20
19
paths, datas = setup_hdf5dataset_test()
21
dataset = HDF5Dataset("test.h5", paths)
22
for i in 1:10
23
- data = Tuple(map(x -> getobs(x, i), datas))
+ data = Tuple(map(x -> (x isa String) ? x : getobs(x, i), datas))
24
@test getobs(dataset, i) == data
25
end
26
@test numobs(dataset) == 10
0 commit comments