Module azcam.tools.archon.tempcon_archon

Contains the TempConArchon class.

Classes

class TempConArchon (tool_id='tempcon', description=None)

Defines the Archon temperature control tool.

Creates the tool.

Args

tool_id
Name of tool
description
Description of tool, defaults to tool_id.

Ancestors

Instance variables

var description

Inherited from: TempCon.description

descriptive tool name

var enabled

Inherited from: TempCon.enabled

1 when tool is enabled

var initialized

Inherited from: TempCon.initialized

1 when tool has been initialized

var is_reset

Inherited from: TempCon.is_reset

1 when tool has been reset

var tool_id

Inherited from: TempCon.tool_id

name used to reference the tool ("controller", "display", …)

var verbosity

Inherited from: TempCon.verbosity

verbosity for debug, >0 is more verbose

Methods

def apply_corrections(self, temperature: float, temperature_id: int = 0) ‑> None

Inherited from: TempCon.apply_corrections

Correct the temperatures for offset and scale is temperature correction is enabled.

Args

temperature
temperatures to be corrected

def define_keywords(self)

Inherited from: TempCon.define_keywords

Defines and resets instrument keywords.

def delete_keyword(self, keyword: str)

Inherited from: TempCon.delete_keyword

Delete a keyword.

Args

keyword
keyword
def exposure_finish(self) ‑> None

Inherited from: TempCon.exposure_finish

Custom commands after exposure finishes.

def exposure_start(self) ‑> None

Inherited from: TempCon.exposure_start

Custom commands before exposure starts.

def get_control_temperature(self, temperature_id: int = 0) ‑> float

Inherited from: TempCon.get_control_temperature

Get the control temperature (set point).

Args

temperature_id
temperature sensor identifier

Returns

control_temperature
control temperature
def get_keyword(self, keyword: str) ‑> List

Inherited from: TempCon.get_keyword

Read a temperature keyword value and returns it as [value, comment, type string]

Args

keyword
name of keyword

Returns

list of [keyword, …

def get_keywords(self) ‑> list

Inherited from: TempCon.get_keywords

Return a list of all keyword names.

Returns

keywords
list of all keywords
def get_temperature(self, temperature_id=0)

Read a camera temperature. TemperaureID's are: 0 => TEMPA 1 => TEMPB 2 => TEMPC

def get_temperatures(self) ‑> List[float]

Inherited from: TempCon.get_temperatures

Return all system temperatures.

Returns

temperatures
list of temperatures read
def initialize(self) ‑> None

Inherited from: TempCon.initialize

Initialize the tool.

def read_header(self) ‑> list

Inherited from: TempCon.read_header

Reads and returns current header data.

Returns

list of header lines
[Header[]]: Each element Header[i] contains the sublist (keyword, value, …
def reset(self) ‑> None

Inherited from: TempCon.reset

Reset tempcon tool.

def set_calibrations(self, cals: List[int]) ‑> None

Inherited from: TempCon.set_calibrations

Set calibration curves for temperature sensors. The values of these flags are from the list below which define the calibration curves to use for each …

def set_control_temperature(self, temperature: float = None, temperature_id: int = 0) ‑> None

Inherited from: TempCon.set_control_temperature

Set the control temperature (set point).

Args

temperature
control temperature in Celsius. If not specified, use saved value
temperature_id
def set_corrections(self, temperature_offsets: List[float] = None, temperature_scales: List[float] = None) ‑> None

Inherited from: TempCon.set_corrections

Set temperature correction values and enable correction. If both parameters are None then correction is disabled.

Args

temperature_offsets
list …
def set_keyword(self, keyword: str, value: Any, comment: str = 'none', typestring: str = 'none')

Inherited from: TempCon.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: TempCon.update_header

Update the header, reading current data. Deletes all keywords if the object is not enabled.