From 66f2fc543fda43ad3fb05750e12121991d652685 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89tienne=20Simon?= Date: Thu, 23 Jul 2015 17:47:45 -0400 Subject: use iteritems in init_valid --- data/init_valid.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'data') diff --git a/data/init_valid.py b/data/init_valid.py index 0274c1b..a7244d8 100755 --- a/data/init_valid.py +++ b/data/init_valid.py @@ -30,7 +30,7 @@ _fields = { def init_valid(path): h5file = h5py.File(path, 'w') - for k, v in _fields.items(): + for k, v in _fields.iteritems(): h5file.create_dataset(k, (0,), dtype=v, maxshape=(None,)) split_array = numpy.empty(len(_fields), dtype=numpy.dtype([ -- cgit v1.2.3