Bases: KPFTranslatorFunction
Script which waits for the instrument to be configured for calibrations.
None
Source code in kpf/scripts/WaitForConfigureCalibrations.py
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37 | class WaitForConfigureCalibrations(KPFTranslatorFunction):
'''Script which waits for the instrument to be configured for calibrations.
ARGS:
=====
None
'''
@classmethod
def pre_condition(cls, OB, logger, cfg):
check_input(OB, 'Template_Name', allowed_values=['kpf_cal'])
check_input(OB, 'Template_Version', version_check=True, value_min='0.5')
@classmethod
def perform(cls, OB, logger, cfg):
WaitForCalSource.execute(OB)
WaitForConfigureFIU.execute({'mode': 'Calibration'})
WaitForReady.execute({})
@classmethod
def post_condition(cls, OB, logger, cfg):
pass
|