BCDA-APS / bluesky_training

Bluesky training, including instrument package
https://bcda-aps.github.io/bluesky_training/
Other
11 stars 0 forks source link

Remove @oregistry.register decorators #310

Closed prjemian closed 2 weeks ago

prjemian commented 2 weeks ago

Since auto-register=True is used: https://github.com/BCDA-APS/bluesky_training/blob/43e1b849ec3e8f965a8a4d559f97e4d1bf50c19a/bluesky/instrument/framework/initialize.py#L124

these decorators produce distracting startup warnings such as:

Ignoring component with duplicate name: 'temperature_previous_value_pv'
/home/prjemian/.conda/envs/bluesky_2024_2/lib/python3.11/site-packages/ophydregistry/registry.py:552: UserWarning: Ignoring component with duplicate name: 'temperature_previous_value_pv'
  warnings.warn(msg)
prjemian commented 2 weeks ago

Not a problem in the repo, only a problem in local ~/bluesky directory.