API
pythonIndiExample.py
Go to the documentation of this file.
1 import sys
2 import logging
3 import xconf
4 from magaox.indi.device import XDevice, BaseConfig
5 
6 log = logging.getLogger(__name__)
7 
8 @xconf.config
9 class ExampleConfig(BaseConfig):
10  """Example Python INDI device for MagAO-X
11 
12  Write your command-line help here, and it will be displayed when
13  someone runs `pythonIndiExample -h` in the terminal (along with
14  a summary of available options)
15  """
16  configurable_doodad_1 : str = xconf.field(default="abc", help="Configurable doodad 1")
17 
18 class pythonIndiExample(XDevice):
19  config : ExampleConfig
20 
21  def loop(self):
22  log.info("Looping")