fix: moved to hint structure for flyers
This commit is contained in:
parent
4de1fb9166
commit
fc17741d2a
@ -383,6 +383,10 @@ class SynFlyer(Device, PositionerBase):
|
||||
|
||||
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):
|
||||
positions = np.asarray(positions)
|
||||
|
||||
@ -394,8 +398,10 @@ class SynFlyer(Device, PositionerBase):
|
||||
bundle.append(
|
||||
BECMessage.DeviceMessage(
|
||||
signals={
|
||||
"flyer_samx": {"value": positions[ii, 0], "timestamp": 0},
|
||||
"flyer_samy": {"value": positions[ii, 1], "timestamp": 0},
|
||||
self.name: {
|
||||
"flyer_samx": {"value": positions[ii, 0], "timestamp": 0},
|
||||
"flyer_samy": {"value": positions[ii, 1], "timestamp": 0},
|
||||
}
|
||||
},
|
||||
metadata={"pointID": ii, **metadata},
|
||||
).dumps()
|
||||
|
Loading…
x
Reference in New Issue
Block a user