From 98027c47d39645cc46eb1b7951e9774e56a1ffcf Mon Sep 17 00:00:00 2001 From: Mathieu Roule <72818492+MathieuRoule@users.noreply.github.com> Date: Wed, 15 May 2024 13:19:53 +0200 Subject: [PATCH] Prevent to many warning messages --- src/Chebyshev/Chebyshev.jl | 2 +- src/Legendre/Legendre.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Chebyshev/Chebyshev.jl b/src/Chebyshev/Chebyshev.jl index 0f67e53..697e3fd 100644 --- a/src/Chebyshev/Chebyshev.jl +++ b/src/Chebyshev/Chebyshev.jl @@ -208,7 +208,7 @@ function GetaXi!(FHT::ChebyshevFHT, tabGXi::AbstractVector{Float64}, res::Vector{Float64},warnflag::Vector{Float64}) - println("FiniteHilbertTransform.GetaXi!: deprecation warning: warnflag is now an integer.") + @warn "FiniteHilbertTransform.GetaXi!: deprecation warning: warnflag is now an integer." maxlog=1 res,warnval = GetaXi!(FHT,tabG,res,0) warnflag[1] = warnval diff --git a/src/Legendre/Legendre.jl b/src/Legendre/Legendre.jl index ebad2ca..36f91d2 100644 --- a/src/Legendre/Legendre.jl +++ b/src/Legendre/Legendre.jl @@ -488,7 +488,7 @@ function GetaXi!(FHT::LegendreFHT, tabG::AbstractVector{Float64}, res::Vector{Float64},warnflag::Vector{Float64}) - println("FiniteHilbertTransform.GetaXi!: deprecation warning: warnflag is now an integer.") + @warn "FiniteHilbertTransform.GetaXi!: deprecation warning: warnflag is now an integer." maxlog=1 res,warnval = GetaXi!(FHT,tabG,res,0) warnflag[1] = warnval