Skip to content

Commit 05ba09b

Browse files
committed
Use Type not DataType
1 parent 3d1422e commit 05ba09b

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

test/mri/exp_xform.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ using Test: @test, @test_throws, @inferred
55

66

77
# test for given data type
8-
function exp_xform_test( ; T::DataType = ComplexF32)
8+
function exp_xform_test( ; T::Type{<:Complex{<:AbstractFloat}} = ComplexF32)
99

1010
modes = (:element, :row, :column)
1111

test/nufft/nufft.jl

+4-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ Simple 1D NUFFT tests.
1919
"""
2020
function nufft_test1( ;
2121
M::Int = 30, N::Int = 20, n_shift::Real = 1.7,
22-
T::DataType = Float64, tol::Real = 7e-6,
22+
T::Type{<:Number} = Float64,
23+
tol::Real = 7e-6,
2324
)
2425

2526
w = (rand(M) .- 0.5) * 2π
@@ -81,7 +82,8 @@ function nufft_test2( ;
8182
M::Int = 35,
8283
N::Dims = (10,8),
8384
n_shift::AbstractVector{<:Real} = [4,3],
84-
T::DataType = Float64, tol::Real = 2e-6,
85+
T::Type{<:Number} = Float64,
86+
tol::Real = 2e-6,
8587
)
8688

8789
w = []

0 commit comments

Comments
 (0)