Skip to content

Commit

Permalink
smilei: accessible dumpkeys
Browse files Browse the repository at this point in the history
  • Loading branch information
sjgrimm committed Apr 11, 2024
1 parent 35c71a4 commit 8545d4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion postpic/datareader/smileih5.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ def __init__(self, h5file, dumpreadercls=SmileiReader, **kwargs):
indexfile = _getindexfile(h5file)
self._h5 = h5py.File(indexfile, 'r')
with h5py.File(indexfile, 'r') as h5:
self._dumpkeys = list(h5['data'].keys())
self._dumpkeys = [int(i) for i in h5['data'].keys()]
else:
raise IOError('{} does not exist.'.format(h5file))

Expand Down

0 comments on commit 8545d4c

Please sign in to comment.