panoptes.pocs package

Subpackages

Submodules

panoptes.pocs.base module

panoptes.pocs.core module

panoptes.pocs.hardware module

Information about hardware supported by Panoptes.

panoptes.pocs.hardware.get_all_names(all_names=['camera', 'dome', 'mount', 'night', 'weather'], without=[])[source]

Returns the names of all the categories of hardware that POCS supports.

Note that this doesn’t extend to the Arduinos for the telemetry and camera boards, for which no simulation is supported at this time.

panoptes.pocs.hardware.get_simulator_names(simulator=None, kwargs=None, config=None)[source]

Returns the names of the simulators to be used in lieu of hardware drivers.

Note that returning a list containing ‘X’ doesn’t mean that the config calls for a driver of type ‘X’; that is up to the code working with the config to create drivers for real or simulated hardware.

This funciton is intended to be called from PanBase or similar, which receives kwargs that may include simulator, config or both. For example:

get_simulator_names(config=self.config, kwargs=kwargs)
Or:
get_simulator_names(simulator=simulator, config=self.config)

The reason this function doesn’t just take **kwargs as its sole arg is that we need to allow for the case where the caller is passing in simulator (or config) twice, once on its own, and once in the kwargs (which won’t be examined). Python doesn’t permit a keyword argument to be passed in twice.

Parameters:
  • simulator – An explicit list of names of hardware to be simulated (i.e. hardware drivers to be replaced with simulators).
  • kwargs – The kwargs passed in to the caller, which is inspected for an arg called ‘simulator’.
  • config – Dictionary created from pocs.yaml or similar.
Returns:

List of names of the hardware to be simulated.

panoptes.pocs.images module

panoptes.pocs.observatory module

Module contents