From 4690357ca4358b2dfad061369cdd28244b256eb5 Mon Sep 17 00:00:00 2001 From: Pete R Jemian Date: Fri, 2 Feb 2024 13:51:22 -0600 Subject: [PATCH] ENH #263 --- CHANGES.rst | 6 ++++-- bluesky/instrument/framework/initialize.py | 5 +++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index 6c31a008..a9577bbb 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -24,12 +24,12 @@ describe future plans. 1.0.3 ****** - release expected by 2024-02-01 + release expected by 2024-04-01 1.0.2 ****** -release expected by 2023-12-31 +release expected by 2024-03-01 New Features ------------ @@ -38,6 +38,8 @@ New Features * ophyd-registry +* Build ``registry`` of all ophyd objects. + Maintenance ------------ diff --git a/bluesky/instrument/framework/initialize.py b/bluesky/instrument/framework/initialize.py index 5ca712dc..2b92c672 100644 --- a/bluesky/instrument/framework/initialize.py +++ b/bluesky/instrument/framework/initialize.py @@ -7,6 +7,7 @@ bp bps bpp summarize_plan np + registry """.split() import logging @@ -31,6 +32,7 @@ from bluesky.utils import ts_msg_hook from IPython import get_ipython from ophyd.signal import EpicsSignalBase +from ophydregistry import Registry import databroker import ophyd import warnings @@ -117,6 +119,9 @@ def get_md_path(): connection_timeout=iconfig.get("PV_CONNECTION_TIMEOUT", TIMEOUT), ) +# Create a registry of ophyd devices +registry = Registry(auto_register=True) + _pv = iconfig.get("RUN_ENGINE_SCAN_ID_PV") if _pv is None: logger.info("Using RunEngine metadata for scan_id")