Commit de1061a6 authored by Alejandro Homs Puron's avatar Alejandro Homs Puron Committed by operator for beamline

dump_eiger_calib: use OrderedDict for DAC values in EDF header

parent 445add7e
......@@ -4,6 +4,7 @@ import sys
import os
import stat
import numpy as np
from collections import OrderedDict
dacs = [
......@@ -97,10 +98,10 @@ fname = 'Trimbits_%seV_beb%s-%s.edf' % (energy, sn_list[0], sn_list[-1])
ocal_fname = os.path.join(output_dir, fname)
if os.path.exists(ocal_fname):
ocal_head = {'host_names': str(host_names),
'config_file': config_fname,
'settings_dir': settings_dir,
'energy': energy}
ocal_head = OrderedDict(host_names=str(host_names),
ocal_head.update([(n, str(l)) for n, l in zip(head_keys, dacs_arr)])
ocal_file = EdfFile(ocal_fname)
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