Skip to content

Commit 1ab8dba

Browse files
committed
Explicit mode to open rproffile in rprof_h5
This avoid a deprecation warning from h5py.
1 parent 071d07c commit 1ab8dba

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
@@ -217,7 +217,7 @@ def rprof_h5(rproffile, colnames):
217217
if not rproffile.is_file():
218218
return None, None
219219
isteps = []
220-
with h5py.File(rproffile) as h5f:
220+
with h5py.File(rproffile, 'r') as h5f:
221221
dnames = sorted(dname for dname in h5f.keys()
222222
if dname.startswith('rprof_'))
223223
ncols = h5f['names'].shape[0]

0 commit comments

Comments
 (0)