Commit f31128fc authored by Thomas Vincent's avatar Thomas Vincent

open spec h5 file as read-only

parent a470ecfb
......@@ -754,7 +754,7 @@ def _add_edf_data(scan_id,
progress[proc_idx] = 1
entry_h5f.copy_group(spec_h5_fn, scan_id, entry)
with h5py.File(spec_h5_fn) as spec_h5:
with h5py.File(spec_h5_fn, mode='r') as spec_h5:
command = spec_h5[scan_id]['title'][()]
command_params = parse_scan_command(command)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment