Skip to content

Commit 62b9098

Browse files
Merge pull request #67 from philipstarkey/fix-h5py-file-mode
Fix h5py deprecation warning
2 parents 0e23ed0 + 1746399 commit 62b9098

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

labscript/labscript.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2279,7 +2279,7 @@ def generate_code():
22792279
elif not os.path.exists(compiler.hdf5_filename):
22802280
with h5py.File(compiler.hdf5_filename ,'w') as hdf5_file:
22812281
hdf5_file.create_group('globals')
2282-
with h5py.File(compiler.hdf5_filename) as hdf5_file:
2282+
with h5py.File(compiler.hdf5_filename, 'a') as hdf5_file:
22832283
try:
22842284
hdf5_file.create_group('devices')
22852285
hdf5_file.create_group('calibrations')

0 commit comments

Comments
 (0)