Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion blacs/experiment_queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ def process_request(self,h5_filepath):
result,error = inmain(self.BLACS.connection_table.compare_to,new_conn)
if result:
# Has this run file been run already?
with h5py.File(h5_filepath) as h5_file:
with h5py.File(h5_filepath, 'r') as h5_file:
if 'data' in h5_file['/']:
rerun = True
else:
Expand Down
2 changes: 1 addition & 1 deletion blacs/plugins/cycle_time/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def pre_transition_to_buffered(self, h5_filepath):
self.target_cycle_time = self.next_target_cycle_time
self.delay_after_programming = self.next_delay_after_programming

with h5py.File(h5_filepath) as f:
with h5py.File(h5_filepath, 'r') as f:
try:
group = f['shot_properties']
except KeyError:
Expand Down