Skip to content

Commit 83cb199

Browse files
authored
Merge pull request #117 from chrisjbillington/allow-data-exist
Don't error if 'data' group already exists
2 parents 94d731c + ec3f6b1 commit 83cb199

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

blacs/experiment_queue.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,7 @@ def restart_function(device_name):
853853
with h5py.File(path,'r+') as hdf5_file:
854854
self.BLACS.front_panel_settings.store_front_panel_in_h5(hdf5_file,states,tab_positions,window_data,plugin_data,save_conn_table=False, save_queue_data=False)
855855

856-
data_group = hdf5_file['/'].create_group('data')
856+
data_group = hdf5_file['/'].require_group('data')
857857
# stamp with the run time of the experiment
858858
hdf5_file.attrs['run time'] = run_time.strftime('%Y%m%dT%H%M%S.%f')
859859

0 commit comments

Comments
 (0)