Skip to content

Commit 7f1544a

Browse files
committed
fix test: unwrap AxisArray
1 parent 32941a3 commit 7f1544a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/cuda/models.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ using ImageFiltering.Models
3535
@test Array(img_smoothed_cu) img_smoothed
3636

3737
# 3D Gray
38-
img = restrict(testimage("mri"), (1, 2))
38+
img = Gray.(restrict(testimage("mri"), (1, 2)))
3939
img_noisy = img .+ 0.05randn(MersenneTwister(0), size(img))
4040
img_smoothed = solve_ROF_PD(img_noisy, 0.02, 20)
4141
@test ndims(img_smoothed) == 3

test/models.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ using ImageFiltering.Models
2323
@test assess_ssim(img_smoothed, img) > 0.90
2424

2525
# 3D Gray
26-
img = restrict(testimage("mri"), (1, 2))
26+
img = Gray.(restrict(testimage("mri"), (1, 2)))
2727
img_noisy = img .+ 0.05randn(MersenneTwister(0), size(img))
2828
img_smoothed = solve_ROF_PD(img_noisy, 0.02, 20)
2929
@test ndims(img_smoothed) == 3

0 commit comments

Comments
 (0)