Skip to content

Commit

Permalink
Merge pull request #67 from philipstarkey/fix-h5py-file-mode
Browse files Browse the repository at this point in the history
Fix h5py deprecation warning
  • Loading branch information
chrisjbillington authored Jun 25, 2020
2 parents 0e23ed0 + 1746399 commit 62b9098
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 62b9098

Please sign in to comment.