From 01f27c350347607b31c68cf96ae9c781f10582db Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Sun, 21 Jun 2015 15:45:37 -0400 Subject: Fix hdf5 generation --- data/init_valid.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'data/init_valid.py') diff --git a/data/init_valid.py b/data/init_valid.py index cecaca9..6694caa 100755 --- a/data/init_valid.py +++ b/data/init_valid.py @@ -38,15 +38,17 @@ def init_valid(path): ('source', 'a', 21), ('start', numpy.int64, 1), ('stop', numpy.int64, 1), + ('indices', h5py.special_dtype(ref=h5py.Reference)), ('available', numpy.bool, 1), ('comment', 'a', 1)])) split_array[:]['split'] = 'dummy'.encode('utf8') for (i, k) in enumerate(_fields.keys()): - split_array[i] = k.encode('utf8') + split_array[i]['source'] = k.encode('utf8') split_array[:]['start'] = 0 split_array[:]['stop'] = 0 split_array[:]['available'] = False + split_array[:]['indices'] = None split_array[:]['comment'] = '.'.encode('utf8') h5file.attrs['split'] = split_array -- cgit v1.2.3