diff options
author | Étienne Simon <esimon@esimon.eu> | 2015-07-23 17:47:45 -0400 |
---|---|---|
committer | Étienne Simon <esimon@esimon.eu> | 2015-07-23 17:47:45 -0400 |
commit | 66f2fc543fda43ad3fb05750e12121991d652685 (patch) | |
tree | 3e1e1cd2544ae38598b296c54e67037784bd33bc /data/init_valid.py | |
parent | 8792dd327159b6eebbca167c325629b42e54766f (diff) | |
download | taxi-66f2fc543fda43ad3fb05750e12121991d652685.tar.gz taxi-66f2fc543fda43ad3fb05750e12121991d652685.zip |
use iteritems in init_valid
Diffstat (limited to 'data/init_valid.py')
-rwxr-xr-x | data/init_valid.py | 2 |
1 files changed, 1 insertions, 1 deletions
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([ |