Bases: KPFFunction
MAGIQ API documentation:
http://suwebserver01.keck.hawaii.edu/magiqStatus/magiqServer.php
Source code in kpf/magiq/GetTargetList.py
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30 | class GetTargetList(KPFFunction):
'''
MAGIQ API documentation:
http://suwebserver01.keck.hawaii.edu/magiqStatus/magiqServer.php
'''
@classmethod
def pre_condition(cls, args):
pass
@classmethod
def perform(cls, args):
log.info(f'Running Magiq getTargetlist command')
result = magiq_server_command('getTargetlist')
lines = result.split('\n')
target_names = [line[:16].strip() for line in lines]
log.debug(target_names)
return target_names, lines
@classmethod
def post_condition(cls, args):
pass
|