Skip to content

Commit 28b7f50

Browse files
committed
Fix get_field
1 parent 3147d28 commit 28b7f50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stagpy/stagyyparsers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ def _get_field(xdmf_file, data_item):
659659
# test previous/following snapshot files as their numbers can get
660660
# slightly out of sync between cores
661661
h5file_parts = h5file.split('_')
662-
fnum = h5file_parts[-2]
662+
fnum = int(h5file_parts[-2])
663663
if fnum > 0:
664664
h5file_parts[-2] = '{:05d}'.format(fnum - 1)
665665
h5f = xdmf_file.parent / '_'.join(h5file_parts)

0 commit comments

Comments
 (0)