hutch_python.load_conf.load_conf¶
- hutch_python.load_conf.load_conf(conf, hutch_dir=None, args=None)¶
- Step through the object loading procedure, given a configuration. - The procedure is: - Check the configuration for errors 
- Display the banner by calling - hutch_banner
- Use - hutchkey to create- hutch.dbimportable namespace to stash the objects. This will be literally- hutch.dbif hutch is not provided, or the hutch name e.g.- mfx.db.
- Evaluate the settings to determine which kind of daq object to create later. 
- Load debug tools 
- Load options 
- Set ophyd signal default timeouts 
- Create a - logsnamespace that allows the user to configure the logging settings.
- Create a - RunEngine,- RE
- Create a - daqobject with- REregistered.
- Import - plan_defaultsand include- bp,- bps, and- bpp.
- Add a - renamespace of ready-to-run scan functions as a mirror of- bp. Graft all daq-integrated scans onto the- daqobject.
- Create a - scan_pvsobject, and- enableit.
- Use - hutchand- daq_platformkeys to create the- elogobject and configure it to match the correct experiment.
- Load the shared global devices for LCLS 
- Use - dbkey to load devices from the- happibeamline database and create a- hutch_beampathobject from- lightpath
- Create an - archiveobject for interfacing with the Archiver Appliance
- Use - hutchkey to load detector objects from the- camviewerconfiguration file.
- Load some simulated hardware and place it in the - simnamespace.
- Use - experimentkey to select the current experiment- If - experimentwas missing, autoselect experiment using- hutchkey
 
- Use current experiment to load experiment objects from questionnaire 
- Use - loadkey to bring up the user’s- beamlinemodules
- Use current experiment to load experiment file 
- Create some default groups 
- Configure and load the position presets 
- Write the db.txt file to note what was loaded 
 - If a conf key is missing, we’ll note it in a - logger.infomessage. If an extra conf entry is found, we’ll note it in a- logger.warningmessage. If an automatically selected file is missing, we’ll note it in a- logger.infomessage. All other errors will be noted in a logger.error message.- Parameters
- conf (dict) – - dictinterpretation of the original yaml file
- hutch_dir ( - Pathor- str, optional) –- Pathobject that points to the hutch’s launch directory. This is the directory that includes the- experimentsdirectory and a hutchname directory e.g.- mfxIf this is missing, we’ll be unable to write the- db.txtfile, do relative filepath database selection for- happi, or establish a preset positions directory.
- args (argparse.Namespace, optional) – The namespace returned from the cli argument parsing, or None 
 
- Returns
- objs – See the return value of - load
- Return type
- dict{str: object}