bluesky / ophyd

hardware abstraction in Python with an emphasis on EPICS
https://blueskyproject.io/ophyd
BSD 3-Clause "New" or "Revised" License
51 stars 79 forks source link

More informative debug logs on callbacks from monitored EpicsSignal #1188

Open DominicOram opened 7 months ago

DominicOram commented 7 months ago

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: