bluesky/ophyd

More informative debug logs on callbacks from monitored EpicsSignal

Opened this issue · 0 comments

Given I have an EpicsSignal connected to a PV when I change the PV outside ophyd e.g. through a caput I get a message like the following in the ophyd debug logs:

put(value=-0.7591089346600004, timestamp=1712804635.801214, force=True, metadata={'status': <AlarmStatus.NO_ALARM: 0>, 'severity': <AlarmSeverity.NO_ALARM: 0>, 'precision': 5, 'lower_ctrl_limit': -28.7104, 'upper_ctrl_limit': 16.2896, 'units': 'mrad'})

This is useful but could be improved:

  • The word put here is confusing - it implies it's ophyd doing the putting but actually it's getting an update from EPICS
  • There is no indication of which PV has changed, making debugging a bit of guess work