Skip to content

Commit

Permalink
suspect that eagle() is somehow getting loaded as RGB instead of gray…
Browse files Browse the repository at this point in the history
…scale

try keeping just he last channel in that case
  • Loading branch information
grlee77 committed Apr 27, 2023
1 parent 2785f7d commit 16263b0
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@ def test_mismatch_offsets_size():
)
def test_disambiguate_2d(shift0, shift1):
image = cp.array(eagle()[500:, 900:]) # use a highly textured image region
if image.ndim == 3:
image = image[..., 0]
assert image.ndim == 2
shift = (shift0, shift1)
origin0 = []
Expand Down

0 comments on commit 16263b0

Please sign in to comment.