Module azcam.tools.telescope_console
Contains the base TelescopeConsole class.
Classes
class TelescopeConsole
-
Telescope tool for consoles. Usually implemented as the "telescope" tool.
Args
name
:str
- name of this tool.
Ancestors
Instance variables
var verbosity
-
Inherited from:
ConsoleTools
.verbosity
verbosity for debug, > 0 is more verbose
Methods
def delete_keyword(self, keyword: str) ‑> Optional[str]
-
Inherited from:
ConsoleTools
.delete_keyword
Delete a keyword from a header …
def get_focus(self, focus_id: int = 0) ‑> float
-
Get the current telescope focus position.
Args
focus_id
- focus sensor ID flag
def get_keyword(self, keyword: str) ‑> str
-
Inherited from:
ConsoleTools
.get_keyword
Return a keyword value, its comment string, and type. Comment always returned in double quotes, even if empty …
def get_keywords(self) ‑> list
-
Inherited from:
ConsoleTools
.get_keywords
Return a list of all keyword names …
def get_string(self) ‑> str
-
Inherited from:
ConsoleTools
.get_string
Returns the entire header as a formatted string …
def initialize(self) ‑> None
-
Inherited from:
ConsoleTools
.initialize
Initialize this tool.
def read_header(self)
-
Inherited from:
ConsoleTools
.read_header
Returns the current header …
def reset(self) ‑> None
-
Inherited from:
ConsoleTools
.reset
Reset this tool.
def set_focus(self, focus_value: float, focus_id: int = 0, focus_type: str = 'absolute') ‑> None
-
Set the telescope focus position. The focus value may be an absolute position or a relative step if supported by hardware.
Args
focus_value
- focus position
focus_id
- focus sensor ID flag
focus_type
- focus type (absolute or step)
def set_keyword(self, keyword: str, value: str, comment: str = 'none', typestring: str = 'none') ‑> Optional[str]
-
Inherited from:
ConsoleTools
.set_keyword
Set a keyword value, comment, and type.
Args
keyword
- keyword
value
- value of keyword
comment
- comment string
typestring
- one of …
def update_header(self)
-
Inherited from:
ConsoleTools
.update_header
Update the header of a tool. This command usually reads hardware to get the lastest keyword values.