formatter: fixed formatter
This commit is contained in:
parent
059977db1f
commit
4de1fb9166
@ -61,6 +61,7 @@ class PGMOtFScan(FlyerInterface, Device):
|
|||||||
"""
|
"""
|
||||||
PGM on-the-fly scan
|
PGM on-the-fly scan
|
||||||
"""
|
"""
|
||||||
|
|
||||||
SUB_VALUE = "value"
|
SUB_VALUE = "value"
|
||||||
|
|
||||||
e1 = Cpt(EpicsSignal, "E1", kind=Kind.config)
|
e1 = Cpt(EpicsSignal, "E1", kind=Kind.config)
|
||||||
@ -90,17 +91,13 @@ class PGMOtFScan(FlyerInterface, Device):
|
|||||||
|
|
||||||
def complete(self):
|
def complete(self):
|
||||||
def check_value(*, old_value, value, **kwargs):
|
def check_value(*, old_value, value, **kwargs):
|
||||||
return (old_value == 1 and value == 0)
|
return old_value == 1 and value == 0
|
||||||
|
|
||||||
status = SubscriptionStatus(self.acquire, check_value, event_type=self.acquire.SUB_VALUE)
|
status = SubscriptionStatus(self.acquire, check_value, event_type=self.acquire.SUB_VALUE)
|
||||||
return status
|
return status
|
||||||
|
|
||||||
def collect(self):
|
def collect(self):
|
||||||
data = {
|
data = {"time": self._start_time, "data": {}, "timestamps": {}}
|
||||||
"time": self._start_time,
|
|
||||||
"data": {},
|
|
||||||
"timestamps": {}
|
|
||||||
}
|
|
||||||
for attr in ("edata", "data", "idata", "fdata"):
|
for attr in ("edata", "data", "idata", "fdata"):
|
||||||
obj = getattr(self, attr)
|
obj = getattr(self, attr)
|
||||||
data["data"][obj.name] = obj.get()
|
data["data"][obj.name] = obj.get()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user