panoptes.pocs.camera.simulator package

Submodules

panoptes.pocs.camera.simulator.ccd module

class panoptes.pocs.camera.simulator.ccd.Camera(name='Simulated SDK camera', driver=<class 'panoptes.pocs.camera.simulator.ccd.SDKDriver'>, target_temperature=<Quantity 0. deg_C>, *args, **kwargs)[source]

Bases: AbstractSDKCamera, Camera, ABC

connect()[source]

Connect to camera simulator

The simulator merely marks the connected property.

property cooling_enabled

Get current status of the camera’s image sensor cooling system (enabled/disabled).

Note: this only needs to be implemented for cameras which have cooled image sensors, not for those that don’t (e.g. DSLRs).

property cooling_power

Get current power level of the camera’s image sensor cooling system (typically as a percentage of the maximum).

Note: this only needs to be implemented for cameras which have cooled image sensors, not for those that don’t (e.g. DSLRs).

property target_temperature

Get current value of the target temperature for the camera’s image sensor cooling control.

Note: this only needs to be implemented for cameras which have cooled image sensors, not for those that don’t (e.g. DSLRs).

property temperature

Get current temperature of the camera’s image sensor.

Note: this only needs to be implemented for cameras which can provided this information, e.g. those with cooled image sensors.

class panoptes.pocs.camera.simulator.ccd.SDKDriver(library_path=None, **kwargs)[source]

Bases: AbstractSDKDriver

get_SDK_version()[source]

Get the version of the SDK

get_devices()[source]

Get connected device UIDs and corresponding device nodes/handles/IDs.

panoptes.pocs.camera.simulator.dslr module

class panoptes.pocs.camera.simulator.dslr.Camera(name='Simulated Camera', *args, **kwargs)[source]

Bases: AbstractCamera

property bit_depth

ADC bit depth.

connect()[source]

Connect to camera simulator

The simulator merely marks the connected property.

property egain

Image sensor gain in e-/ADU as reported by the camera.

take_observation(observation, headers=None, filename=None, *args, **kwargs)[source]

Take an observation

Gathers various header information, sets the file path, and calls

take_exposure. Also creates a threading.Event object and a threading.Thread object. The Thread calls process_exposure after the exposure had completed and the Event is set once process_exposure finishes.

Parameters:
  • observation (Observation) – Object describing the observation

  • headers (dict or Header, optional) – Header data to be saved along with the file.

  • filename (str, optional) – pass a filename for the output FITS file to override the default file naming system.

  • blocking (bool) – If method should wait for observation event to be complete before returning, default False.

  • **kwargs (dict) – Optional keyword arguments (exptime, dark)

Returns:

The metadata from the event.

Return type:

dict

Module contents