Note

Ophyd.v2 is included on a provisional basis until the v2.0 release and may change API on minor release numbers before then

ophyd.v2.core.Device#

class ophyd.v2.core.Device(name: str = '')#

Bases: HasName

Common base class for all Ophyd.v2 Devices.

By default, names and connects all Device children.

Methods

connect

Connect self and all child Devices.

set_name

Set self.name=name and each self.child.name=name+"-child".

Attributes

name

Return the name of the Device

parent

The parent Device if it exists

parent: Device | None = None#

The parent Device if it exists

property name: str#

Return the name of the Device

set_name(name: str)#

Set self.name=name and each self.child.name=name+"-child".

Parameters:
name:

New name to set

async connect(sim: bool = False)#

Connect self and all child Devices.

Parameters:
sim:

If True then connect in simulation mode.