Skip to content

Commit

Permalink
Resolve mypy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bwohlberg committed Sep 12, 2024
1 parent fe10b82 commit 127ac7e
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions scico/linop/xray/_xray.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,9 @@ def _back_project(
@staticmethod
@partial(jax.jit, static_argnames=["nx"])
@partial(jax.vmap, in_axes=(None, None, None, 0, None))
def _calc_weights(x0: ArrayLike, dx: ArrayLike, nx: int, angle: float, y0: float) -> snp.Array:
def _calc_weights(
x0: ArrayLike, dx: ArrayLike, nx: Shape, angle: float, y0: float
) -> snp.Array:
"""
Args:
Expand Down Expand Up @@ -249,10 +251,6 @@ class XRayTransform3D(LinearOperator):
:meth:`XRayTransform3D.matrices_from_euler_angles` can help to
make these geometry arrays.
"""

def __init__(
Expand All @@ -268,7 +266,7 @@ def __init__(
det_shape: Shape of detector.
"""

self.input_shape = input_shape
self.input_shape: Shape = input_shape
self.matrices = matrices
self.det_shape = det_shape
self.output_shape = (len(matrices), *det_shape)
Expand Down

0 comments on commit 127ac7e

Please sign in to comment.