Skip to content

Commit 748fd4f

Browse files
committed
Add NonuniformFFts tests
1 parent 687f0fe commit 748fd4f

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

Project.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
1414
[extras]
1515
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
1616
JLArrays = "27aeb0d3-9eb9-45fb-866b-73c2ecf80fcb"
17+
NonuniformFFTs = "cd96f58b-6017-4a02-bb9e-f4d81626177f"
1718
NFFT = "efe261a4-0d2b-5849-be55-fc731d526b0d"
1819
Wavelets = "29a6e085-ba6d-5f35-a997-948ac2efa89a"
1920
FFTW = "7a1cc6ca-52ef-59f5-83cd-3a7055c09341"
@@ -26,6 +27,8 @@ KernelAbstractions = "0.9"
2627
JLArrays = "0.2"
2728
AbstractNFFTs = "0.9"
2829
LinearOperators = "2"
30+
NonuniformFFTs = "0.9"
31+
NFFT = "0.14"
2932
RadonKA = "0.6"
3033
Wavelets = "0.9, 0.10"
3134
Reexport = "1.0"
@@ -41,7 +44,7 @@ FFTW = "7a1cc6ca-52ef-59f5-83cd-3a7055c09341"
4144
RadonKA = "86de8297-835b-47df-b249-c04e8db91db5"
4245

4346
[targets]
44-
test = ["Test", "FFTW", "Wavelets", "NFFT", "JLArrays", "RadonKA"]
47+
test = ["Test", "FFTW", "Wavelets", "NFFT", "NonuniformFFTs", "JLArrays", "RadonKA"]
4548

4649
[extensions]
4750
LinearOperatorNFFTExt = ["AbstractNFFTs", "FFTW"]

test/runtests.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ using Random
44
using LinearAlgebra
55
using FFTW
66
using Wavelets
7+
using NonuniformFFTs
78
using NFFT
89
using RadonKA
910
using JLArrays

test/testOperators.jl

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -440,9 +440,15 @@ end
440440
@info "test WaveletOp: $arrayType"
441441
@testset testWavelet(64,64;arrayType)
442442
@testset testWavelet(64,60;arrayType)
443-
@info "test NFFTOp: $arrayType"
444-
arrayType == JLArray || @testset testNFFT2d(;arrayType) # JLArray does not have a NFFTPlan
445-
arrayType == JLArray || @testset testNFFT3d(;arrayType) # JLArray does not have a NFFTPlan
443+
for backend in [NFFT.backend(), NonuniformFFTs.backend()]
444+
@info "test NFFTOp with $(string(typeof(backend))): $arrayType"
445+
@testset "NFFTOp with $(string(typeof(backend)))" begin
446+
with(nfft_backend => backend) do
447+
arrayType == JLArray || @testset testNFFT2d(;arrayType) # JLArray does not have a NFFTPlan
448+
arrayType == JLArray || @testset testNFFT3d(;arrayType) # JLArray does not have a NFFTPlan
449+
end
450+
end
451+
end
446452
@info "test DiagOp: $arrayType"
447453
@testset testDiagOp(;arrayType)
448454
@info "test RadonOp: $arrayType"

0 commit comments

Comments
 (0)