Skip to content

Commit

Permalink
Use Type not DataType
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffFessler committed May 18, 2024
1 parent 3d1422e commit 05ba09b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/mri/exp_xform.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ using Test: @test, @test_throws, @inferred


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

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

Expand Down
6 changes: 4 additions & 2 deletions test/nufft/nufft.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ Simple 1D NUFFT tests.
"""
function nufft_test1( ;
M::Int = 30, N::Int = 20, n_shift::Real = 1.7,
T::DataType = Float64, tol::Real = 7e-6,
T::Type{<:Number} = Float64,
tol::Real = 7e-6,
)

w = (rand(M) .- 0.5) * 2π
Expand Down Expand Up @@ -81,7 +82,8 @@ function nufft_test2( ;
M::Int = 35,
N::Dims = (10,8),
n_shift::AbstractVector{<:Real} = [4,3],
T::DataType = Float64, tol::Real = 2e-6,
T::Type{<:Number} = Float64,
tol::Real = 2e-6,
)

w = []
Expand Down

0 comments on commit 05ba09b

Please sign in to comment.