mirror of
https://github.com/bec-project/ophyd_devices.git
synced 2025-07-13 12:11:51 +02:00
test: resolved problem after merge conflict
This commit is contained in:
@ -470,31 +470,6 @@ class PilatuscSAXS(DetectorBase):
|
|||||||
"""Specify action that should be taken upon trigger signal."""
|
"""Specify action that should be taken upon trigger signal."""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def _publish_file_location(self, done=False, successful=False) -> None:
|
|
||||||
"""Publish the filepath to REDIS
|
|
||||||
First msg for file writer and the second one for other listeners (e.g. radial integ)
|
|
||||||
"""
|
|
||||||
pipe = self._producer.pipeline()
|
|
||||||
msg = BECMessage.FileMessage(file_path=self.filepath, done=done, successful=successful)
|
|
||||||
self._producer.set_and_publish(
|
|
||||||
MessageEndpoints.public_file(self.scaninfo.scanID, self.name), msg.dumps(), pipe=pipe
|
|
||||||
)
|
|
||||||
self._producer.set_and_publish(
|
|
||||||
MessageEndpoints.file_event(self.name), msg.dumps(), pip=pipe
|
|
||||||
)
|
|
||||||
pipe.execute()
|
|
||||||
|
|
||||||
# TODO function for abstract class?
|
|
||||||
def trigger(self) -> DeviceStatus:
|
|
||||||
"""Trigger the detector, called from BEC."""
|
|
||||||
self._on_trigger()
|
|
||||||
return super().trigger()
|
|
||||||
|
|
||||||
# TODO function for abstract class?
|
|
||||||
def _on_trigger(self):
|
|
||||||
"""Specify action that should be taken upon trigger signal."""
|
|
||||||
pass
|
|
||||||
|
|
||||||
def unstage(self) -> List[object]:
|
def unstage(self) -> List[object]:
|
||||||
"""Unstage the device.
|
"""Unstage the device.
|
||||||
|
|
||||||
@ -567,10 +542,6 @@ class PilatuscSAXS(DetectorBase):
|
|||||||
"""Stop the detector"""
|
"""Stop the detector"""
|
||||||
self.cam.acquire.put(0)
|
self.cam.acquire.put(0)
|
||||||
|
|
||||||
def _stop_det(self) -> None:
|
|
||||||
"""Stop the detector"""
|
|
||||||
self.cam.acquire.put(0)
|
|
||||||
|
|
||||||
def stop(self, *, success=False) -> None:
|
def stop(self, *, success=False) -> None:
|
||||||
"""Stop the scan, with camera and file writer"""
|
"""Stop the scan, with camera and file writer"""
|
||||||
self._stop_det()
|
self._stop_det()
|
||||||
|
Reference in New Issue
Block a user