Skip to content

Commit

Permalink
Fix h5py deprecation warning
Browse files Browse the repository at this point in the history
Addresses labscript-suite/labscript-utils#47 for the labscript module
  • Loading branch information
philipstarkey committed Jun 24, 2020
1 parent 5b52c20 commit 1746399
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion labscript/labscript.py
Original file line number Diff line number Diff line change
Expand Up @@ -2279,7 +2279,7 @@ def generate_code():
elif not os.path.exists(compiler.hdf5_filename):
with h5py.File(compiler.hdf5_filename ,'w') as hdf5_file:
hdf5_file.create_group('globals')
with h5py.File(compiler.hdf5_filename) as hdf5_file:
with h5py.File(compiler.hdf5_filename, 'a') as hdf5_file:
try:
hdf5_file.create_group('devices')
hdf5_file.create_group('calibrations')
Expand Down

0 comments on commit 1746399

Please sign in to comment.