Skip to content

Commit

Permalink
Fix {real,start,stop}_time in eiger stream image messages
Browse files Browse the repository at this point in the history
  • Loading branch information
GDYendell committed Aug 23, 2024
1 parent fdee811 commit 9118017
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/tickit_devices/eiger/data/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
6 changes: 3 additions & 3 deletions src/tickit_devices/eiger/stream/eiger_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions tests/eiger/test_eiger_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
]

0 comments on commit 9118017

Please sign in to comment.