QueryFastReadMode

Bases: KPFFunction

Returns True if both ACF files are consistent with fast read mode.

Functions Called:

  • kpf.spectrograph.QueryReadMode
Source code in kpf/spectrograph/QueryFastReadMode.py
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
class QueryFastReadMode(KPFFunction):
    '''Returns True if both ACF files are consistent with fast read mode.

    Functions Called:

    - `kpf.spectrograph.QueryReadMode`
    '''
    @classmethod
    def pre_condition(cls, args):
        pass

    @classmethod
    def perform(cls, args):
        green_mode, red_mode = QueryReadMode.execute({})
        return (green_mode == 'fast') and (red_mode == 'fast')

    @classmethod
    def post_condition(cls, args):
        pass