Skip to content

Commit d8b8343

Browse files
Merge pull request #59 from philipstarkey/fix-h5py-file-mode
Addresses #47 for this module
2 parents 9bc7a39 + bfa6932 commit d8b8343

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

labscript_utils/camera_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def transition_to_static(self, h5_filepath):
158158
them to the h5 file"""
159159
import pyfits
160160
start_time = time.time()
161-
with h5py.File(h5_filepath) as f:
161+
with h5py.File(h5_filepath, 'r+') as f:
162162
group = f['devices']['camera']
163163
if not 'EXPOSURES' in group:
164164
print('no images taken this shot')

0 commit comments

Comments
 (0)