pvregistry#
Import: apstools.utils.pvregistry
EPICS PV Registry#
|
Find the ophyd (dotted name) object associated with the given ophyd name. |
|
Find all ophyd objects associated with the given EPICS PV. |
|
Cross-reference EPICS PVs with ophyd EpicsSignalBase objects. |
Module Contents#
- class apstools.utils.pvregistry.PVRegistry(ns=None)[source]#
Import:
apstools.utils.pvregistry.PVRegistryCross-reference EPICS PVs with ophyd EpicsSignalBase objects.
- apstools.utils.pvregistry.findbyname(oname, force_rebuild=False, ns=None)[source]#
Import:
apstools.utils.pvregistry.findbynameFind the ophyd (dotted name) object associated with the given ophyd name.
PARAMETERS
- oname
str : ophyd name to search
- force_rebuild
bool : If
True, rebuild the internal registry that maps ophyd names to ophyd objects.- ns
dict or None : Namespace dictionary of Python objects.
RETURNS
- str or
None: Name of the ophyd object.
EXAMPLE:
In [45]: findbyname("adsimdet_cam_acquire") Out[45]: 'adsimdet.cam.acquire'
- apstools.utils.pvregistry.findbypv(pvname, force_rebuild=False, ns=None)[source]#
Import:
apstools.utils.pvregistry.findbypvFind all ophyd objects associated with the given EPICS PV.
PARAMETERS
- pvname
str : EPICS PV name to search
- force_rebuild
bool : If
True, rebuild the internal registry that maps EPICS PV names to ophyd objects.- ns
dict or None : Namespace dictionary of Python objects.
RETURNS
- dict or
None: Dictionary of matching ophyd objects, keyed by how the PV is used by the ophyd signal. The keys are
readandwrite.
EXAMPLE:
In [45]: findbypv("ad:cam1:Acquire") Out[45]: {'read': [], 'write': ['adsimdet.cam.acquire']} In [46]: findbypv("ad:cam1:Acquire_RBV") Out[46]: {'read': ['adsimdet.cam.acquire'], 'write': []}