mirror of
https://github.com/bec-project/ophyd_devices.git
synced 2025-06-23 19:27:59 +02:00
fix: moved to hint structure for flyers
This commit is contained in:
@ -383,6 +383,10 @@ class SynFlyer(Device, PositionerBase):
|
|||||||
|
|
||||||
super().__init__(name=name, parent=parent, labels=labels, kind=kind, **kwargs)
|
super().__init__(name=name, parent=parent, labels=labels, kind=kind, **kwargs)
|
||||||
|
|
||||||
|
@property
|
||||||
|
def hints(self):
|
||||||
|
return {"fields": ["flyer_samx", "flyer_samy"]}
|
||||||
|
|
||||||
def kickoff(self, metadata, num_pos, positions, exp_time: float = 0):
|
def kickoff(self, metadata, num_pos, positions, exp_time: float = 0):
|
||||||
positions = np.asarray(positions)
|
positions = np.asarray(positions)
|
||||||
|
|
||||||
@ -394,8 +398,10 @@ class SynFlyer(Device, PositionerBase):
|
|||||||
bundle.append(
|
bundle.append(
|
||||||
BECMessage.DeviceMessage(
|
BECMessage.DeviceMessage(
|
||||||
signals={
|
signals={
|
||||||
|
self.name: {
|
||||||
"flyer_samx": {"value": positions[ii, 0], "timestamp": 0},
|
"flyer_samx": {"value": positions[ii, 0], "timestamp": 0},
|
||||||
"flyer_samy": {"value": positions[ii, 1], "timestamp": 0},
|
"flyer_samy": {"value": positions[ii, 1], "timestamp": 0},
|
||||||
|
}
|
||||||
},
|
},
|
||||||
metadata={"pointID": ii, **metadata},
|
metadata={"pointID": ii, **metadata},
|
||||||
).dumps()
|
).dumps()
|
||||||
|
Reference in New Issue
Block a user