Skip to content

Commit

Permalink
Merge pull request #822 from ZLLentz/sim-kind
Browse files Browse the repository at this point in the history
ENH: make sim devices hinted for bec
  • Loading branch information
ZLLentz authored Apr 15, 2021
2 parents 193e079 + e64f8e7 commit 441397e
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 2 deletions.
31 changes: 31 additions & 0 deletions docs/source/upcoming_release_notes/822-sim-kind.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
822 sim-kind
############

API Changes
-----------
- N/A

Features
--------
- N/A

Device Updates
--------------
- Make sim devices hinted by default so they show up in the
best-effort callback in bluesky.

New Devices
-----------
- N/A

Bugfixes
--------
- N/A

Maintenance
-----------
- N/A

Contributors
------------
- zllentz
5 changes: 3 additions & 2 deletions pcdsdevices/sim.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

from ophyd.device import Component as Cpt
from ophyd.device import Device
from ophyd.ophydobj import Kind
from ophyd.positioner import SoftPositioner
from ophyd.signal import AttributeSignal
from ophyd.sim import SynAxis
Expand Down Expand Up @@ -36,10 +37,10 @@ class FastMotor(FltMvInterface, SoftPositioner, Device):

user_readback = Cpt(AttributeSignal, 'position')

def __init__(self, *args, init_pos=0, **kwargs):
def __init__(self, *args, init_pos=0, kind=Kind.hinted, **kwargs):
for kw in ignore_kwargs:
kwargs.pop(kw, None)
super().__init__(init_pos=init_pos, **kwargs)
super().__init__(init_pos=init_pos, kind=kind, **kwargs)

def set_current_position(self, position):
self._set_position(position)
Expand Down

0 comments on commit 441397e

Please sign in to comment.