From ff1e2354661bd4aae25f37fe8307216d8c0c7eed Mon Sep 17 00:00:00 2001 From: Brendt Wohlberg Date: Sun, 6 Oct 2024 11:16:02 -0600 Subject: [PATCH] Resolve errors in jitting method --- scico/linop/xray/_xray.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scico/linop/xray/_xray.py b/scico/linop/xray/_xray.py index 02eb2f2f..bd1cc0ea 100644 --- a/scico/linop/xray/_xray.py +++ b/scico/linop/xray/_xray.py @@ -141,8 +141,8 @@ def fbp(self, y: ArrayLike) -> snp.Array: """ N = y.shape[1] - nvec = np.arange(N) - (N - 1) // 2 - dx = np.sqrt(self.dx[0] * self.dx[1]) # type: ignore + nvec = snp.arange(N) - (N - 1) // 2 + dx = snp.sqrt(self.dx[0] * self.dx[1]) # type: ignore h = XRayTransform2D._ramp_filter(nvec, 1.0 / dx) # Apply ramp filter in the frequency domain, padding to avoid