Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
passscoed committed Aug 14, 2024
1 parent 12d81ef commit e51169d
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/NFFT.jl
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ function nfft_get_coefficient_array(
N::Vector{Int64},
)::Array{ComplexF64}
N = Tuple(N)
return permutedims(reshape(fhat,reverse(N)),length(N):-1:1)
return permutedims(reshape(fhat, reverse(N)), length(N):-1:1)

Check warning on line 603 in src/NFFT.jl

View check run for this annotation

Codecov / codecov/patch

src/NFFT.jl#L602-L603

Added lines #L602 - L603 were not covered by tests
end

@doc raw"""
Expand Down
4 changes: 2 additions & 2 deletions src/NFST.jl
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ reshapes an coefficient vector returned from a linear map of the NFST to an arra
# See also
[`NFST{D}`](@ref), [`nfst_get_LinearMap`](@ref)
"""
function nfst_get_coefficient_array(fhat::Vector{Float64},N::Vector{Int64})::Array{Float64}
function nfst_get_coefficient_array(fhat::Vector{Float64}, N::Vector{Int64})::Array{Float64}
N = Tuple(N .- 1)
return permutedims(reshape(fhat, reverse(N)), length(N):-1:1)

Check warning on line 587 in src/NFST.jl

View check run for this annotation

Codecov / codecov/patch

src/NFST.jl#L585-L587

Added lines #L585 - L587 were not covered by tests
end
Expand All @@ -593,7 +593,7 @@ end
This function defines the multiplication of an NFST plan with an coefficient array.
"""
function Base.:*(plan::NFST{D}, fhat::Array{Float64})::Vector{Float64} where {D}
if !isdefined(plan,:x)
if !isdefined(plan, :x)
error("x is not set.")

Check warning on line 597 in src/NFST.jl

View check run for this annotation

Codecov / codecov/patch

src/NFST.jl#L597

Added line #L597 was not covered by tests
end
plan.fhat = nfst_get_coefficient_vector(fhat)
Expand Down
4 changes: 2 additions & 2 deletions test/NFCT.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ p = NFCT(N, M)
p.x = X
p.fhat = fhat

f3 = p * nfct_get_coefficient_array(fhat,p)
f3 = p * nfct_get_coefficient_array(fhat, p)

L = nfct_get_LinearMap(collect(N),X)
L = nfct_get_LinearMap(collect(N), X)

f4 = L * fhat

Expand Down
5 changes: 2 additions & 3 deletions test/NFFT.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ p = NFFT(N, M)
p.x = X
p.fhat = fhat

f3 = p * nfft_get_coefficient_array(fhat,p)
f3 = p * nfft_get_coefficient_array(fhat, p)

L = nfft_get_LinearMap(collect(N),X)
L = nfft_get_LinearMap(collect(N), X)

f4 = L * fhat

Expand Down Expand Up @@ -122,4 +122,3 @@ p.fhat = fhat
NFFT3.nfft_trafo(p)

#@test_logs (:warn,"You can't modify the C pointer to the NFFT plan.") p.plan = p2.plan

4 changes: 2 additions & 2 deletions test/NFMT.jl
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ p = NFMT(basis_vect, N, M)
p.x = X
p.fhat = fhat

f3 = p * nfmt_get_coefficient_array(fhat,p)
f3 = p * nfmt_get_coefficient_array(fhat, p)

L = nfmt_get_LinearMap(basis_vect,collect(N),X)
L = nfmt_get_LinearMap(basis_vect,collect(N), X)

f4 = L * fhat

Expand Down
4 changes: 2 additions & 2 deletions test/NFST.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ p = NFST(N, M)
p.x = X
p.fhat = fhat

f3 = p * nfst_get_coefficient_array(fhat,p)
f3 = p * nfst_get_coefficient_array(fhat, p)

L = nfst_get_LinearMap(collect(N),X)
L = nfst_get_LinearMap(collect(N), X)

f4 = L * fhat

Expand Down

0 comments on commit e51169d

Please sign in to comment.