GuiderOutdir

Bases: KPFTranslatorFunction

Print the value of the kpfguide.OUTDIR keyword to STDOUT

KTL Keywords Used:

  • kpfguide.OUTDIR
Source code in kpf/guider/GuiderOutdir.py
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
class GuiderOutdir(KPFTranslatorFunction):
    '''Print the value of the kpfguide.OUTDIR keyword to STDOUT

    KTL Keywords Used:

    - `kpfguide.OUTDIR`
    '''
    @classmethod
    def pre_condition(cls, args, logger, cfg):
        pass

    @classmethod
    def perform(cls, args, logger, cfg):
        kpfguide = ktl.cache('kpfguide')
        outdir = kpfguide['OUTDIR'].read()
        print(outdir)

    @classmethod
    def post_condition(cls, args, logger, cfg):
        pass