Skip to content

Commit

Permalink
MNT ignore PersistentDict errors when building the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
prjemian authored Nov 21, 2024
1 parent be01d54 commit 17f2b1d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/instrument/utils/controls_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,11 @@ def connect_scan_id_pv(RE, pv: str = None):
RE.scan_id_source = epics_scan_id_source

scan_id_epics.wait_for_connection()
RE.md["scan_id_pv"] = scan_id_epics.pvname
RE.md["scan_id"] = scan_id_epics.get() # set scan_id from EPICS
try:
RE.md["scan_id_pv"] = scan_id_epics.pvname
RE.md["scan_id"] = scan_id_epics.get() # set scan_id from EPICS
except TypeError:
pass # Ignore PersistentDict errors that only raise when making the docs


def set_control_layer(control_layer: str = DEFAULT_CONTROL_LAYER):
Expand Down

0 comments on commit 17f2b1d

Please sign in to comment.