Skip to content

Commit 1746399

Browse files
committed
Fix h5py deprecation warning
Addresses labscript-suite/labscript-utils#47 for the labscript module
1 parent 5b52c20 commit 1746399

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)