From cb46dcdc0c403c1bd8e0a248e365cd4fe5b3897f Mon Sep 17 00:00:00 2001 From: Gary Yendell Date: Tue, 27 Aug 2024 13:30:34 +0100 Subject: [PATCH] Fix {real,start,stop}_time in eiger stream image messages (#104) --- src/tickit_devices/eiger/data/schema.py | 6 +++--- src/tickit_devices/eiger/stream/eiger_stream.py | 6 +++--- tests/eiger/test_eiger_stream.py | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/tickit_devices/eiger/data/schema.py b/src/tickit_devices/eiger/data/schema.py index ae2f2b93..30232642 100644 --- a/src/tickit_devices/eiger/data/schema.py +++ b/src/tickit_devices/eiger/data/schema.py @@ -68,7 +68,7 @@ class ImageConfigHeader(BaseModel): Describes the metrics on the image acquisition. """ - real_time: float - start_time: float - stop_time: float + real_time: int + start_time: int + stop_time: int htype: str = "dconfig-1.0" diff --git a/src/tickit_devices/eiger/stream/eiger_stream.py b/src/tickit_devices/eiger/stream/eiger_stream.py index ddfc60cc..92295c73 100644 --- a/src/tickit_devices/eiger/stream/eiger_stream.py +++ b/src/tickit_devices/eiger/stream/eiger_stream.py @@ -117,9 +117,9 @@ def insert_image(self, image: Image, series_id: int) -> None: type=image.dtype, ) config_header = ImageConfigHeader( - real_time=0.0, - start_time=0.0, - stop_time=0.0, + real_time=0, + start_time=0, + stop_time=0, ) self._buffer(header) diff --git a/tests/eiger/test_eiger_stream.py b/tests/eiger/test_eiger_stream.py index 67395219..3ead2a59 100644 --- a/tests/eiger/test_eiger_stream.py +++ b/tests/eiger/test_eiger_stream.py @@ -140,8 +140,8 @@ def expected_image_blobs(image: Image) -> list[bytes | BaseModel]: ), image.data, ImageConfigHeader( - real_time=0.0, - start_time=0.0, - stop_time=0.0, + real_time=0, + start_time=0, + stop_time=0, ), ]