Skip to content

Commit

Permalink
Make pyright happy
Browse files Browse the repository at this point in the history
  • Loading branch information
rtuck99 committed Oct 15, 2024
1 parent 354b20a commit 41e12b9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/dodal/devices/zocalo/zocalo_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit 41e12b9

Please sign in to comment.