init_cal_dict¶
-
ndmapper.calibrations.
init_cal_dict
(filename=None)[source] [edit on github]¶ Load a calibration dictionary from a JSON file if one is specified, otherwise initialize a new dictionary in the same format.
Parameters: filename :
str
, optionalName of the JSON cache file to load, if any.
Returns: An (empty or populated) dictionary of calibration files & associations, in the required format. This consists of 3 sub-dictionaries, ‘associations’, mapping each input filename to a dictionary of calibration name labels, keyed by calibration type; ‘calibrations’, mapping each calibration name label to a list of constituent raw files and ‘checksums’, mapping each raw calibration file to an optional checksum. [To do: add an example.]