From 41e12b9aeb8be0064c6cf4058204b65f82806917 Mon Sep 17 00:00:00 2001 From: Robert Tuck Date: Fri, 4 Oct 2024 16:27:28 +0100 Subject: [PATCH] Make pyright happy --- src/dodal/devices/zocalo/zocalo_results.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/dodal/devices/zocalo/zocalo_results.py b/src/dodal/devices/zocalo/zocalo_results.py index a722eb7b42..a9a6f612d5 100644 --- a/src/dodal/devices/zocalo/zocalo_results.py +++ b/src/dodal/devices/zocalo/zocalo_results.py @@ -9,8 +9,8 @@ import numpy as np import workflows.recipe import workflows.transport -from bluesky import Msg from bluesky.protocols import Descriptor, Triggerable +from bluesky.utils import Msg from deepdiff import DeepDiff from numpy.typing import NDArray from ophyd_async.core import ( @@ -52,7 +52,7 @@ class ZocaloSource(str, Enum): class XrcResult(TypedDict): - centre_of_mass: list[int] + centre_of_mass: list[float] max_voxel: list[int] max_count: int n_voxels: int @@ -398,5 +398,5 @@ def get_full_processing_results( """A plan that will return the raw zocalo results, ranked in descending order according to the sort key. Returns empty list in the event no results found.""" LOGGER.info("Retrieving raw zocalo processing results") - raw_results = yield from bps.rd(zocalo.results, default_value=[]) - return [_corrected_xrc_result(r) for r in raw_results] + raw_results = yield from bps.rd(zocalo.results, default_value=[]) # type: ignore + return [_corrected_xrc_result(r) for r in raw_results] # type: ignore