Skip to content

Commit

Permalink
Again correct unhashable argument (ndarray -> tuple for shapes)
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-T-McCann committed Jul 24, 2024
1 parent dc5dd5b commit beba882
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scico/linop/xray/_xray.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,11 @@ def __init__(
self.input_shape = input_shape
self.angles = angles

self.nx = np.array(input_shape)
self.nx = tuple(input_shape)
if dx is None:
dx = np.full(2, np.sqrt(2) / 2)
dx = 2 * (np.sqrt(2) / 2,)
if is_scalar_equiv(dx):
dx = np.full(2, dx)
dx = 2 * (dx,)
self.dx = dx

# check projected pixel width assumption
Expand All @@ -117,7 +117,7 @@ def __init__(
)

if x0 is None:
x0 = -(self.nx * self.dx) / 2
x0 = -(np.array(self.nx) * self.dx) / 2
self.x0 = x0

if det_count is None:
Expand Down

0 comments on commit beba882

Please sign in to comment.