test: resolved problem after merge conflict

This commit is contained in:
2023-11-08 11:40:56 +01:00
parent 324f5091ec
commit f32fdbc845

View File

@ -470,31 +470,6 @@ class PilatuscSAXS(DetectorBase):
"""Specify action that should be taken upon trigger signal."""
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]:
"""Unstage the device.
@ -567,10 +542,6 @@ class PilatuscSAXS(DetectorBase):
"""Stop the detector"""
self.cam.acquire.put(0)
def _stop_det(self) -> None:
"""Stop the detector"""
self.cam.acquire.put(0)
def stop(self, *, success=False) -> None:
"""Stop the scan, with camera and file writer"""
self._stop_det()