Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
philipstarkey committed Jun 25, 2020
1 parent 88eb635 commit cb41ec0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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

0 comments on commit cb41ec0

Please sign in to comment.