devices package

Package providing the “devices” infrastructure.

device module

Module containing the Device base class as well as the RuntimeDevice implementation and some helper functions to access/set devices.

Exported members: Device, RuntimeDevice, get_device(), set_device(), all_devices, device_override, device

Classes

CurrentDeviceProxy Method proxy for access to the currently active device
Device() Base Device object.
Dummy Dummy object
RuntimeDevice()

Attributes

Functions

device_override(name) Decorates a function/method to allow it to be overridden by the current Device.
get_default_codeobject_class() Returns the default CodeObject class from the preferences.
get_device() Gets the actve Device object
set_device(device) Sets the active Device object

Objects

active_device
device Dummy object
runtime_device