Skip to content

Commit

Permalink
Switch to FOurierTools since FFTResampling is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
mloubout committed Nov 28, 2022
1 parent 9cb014d commit cc661ac
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ authors = ["rafaelorozco <[email protected]>", "Mathias Louboutin <mathias.loubo
version = "0.4.1"

[deps]
FFTResampling = "c3173eba-33fe-4761-8a84-0ec65b39ba9a"
FourierTools = "b18b359b-aebc-45ac-a139-9c0ccbb2871e"
JUDI = "f3b833dc-6b2e-5b9c-b940-873ed6319979"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[compat]
JUDI = "^3.2.0"
FourierTools = "0.3"

This comment has been minimized.

Copy link
@mloubout

mloubout Nov 28, 2022

Author Member
Reexport = "1"
julia = "1.6"

Expand Down
2 changes: 1 addition & 1 deletion src/PhotoAcoustic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ using LinearAlgebra, Reexport
PhotoAcoustic_path = dirname(pathof(PhotoAcoustic))

using JUDI.DSP, JUDI.PyCall, JUDI.FFTW, JUDI.JOLI
using FFTResampling
using FourierTools

import Base: getindex, *, copy!, copyto!, similar, getproperty, display
import JUDI: judiMultiSourceVector, judiComposedPropagator, judiPropagator, judiNoopOperator
Expand Down
2 changes: 1 addition & 1 deletion src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function blackman_upscale(p0::Array{T, N}, d::NTuple{N, T}, upsample_fact=1.25;

###################Smooth Iniital pressure distribution by upsampling and also blackman smooth
#upsample p0 in FFT space
p0_up = FFTResampling.resample(p0_zeropad, N_up, true; boundary_handling=false)
p0_up = FourierTools.resample(p0_zeropad, N_up; normalize=true)

#smooth p0 using blackman filter
window = Float32.(blackman(N_orig; padding=0));
Expand Down

1 comment on commit cc661ac

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request updated: JuliaRegistries/General/73015

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.4.1 -m "<description of version>" cc661ac59f136e5c8274fd6ecbbcb786b22b8fdf
git push origin v0.4.1

Please sign in to comment.