diff --git a/src/Utils/IO.jl b/src/Utils/IO.jl index 9027326..6dd6491 100644 --- a/src/Utils/IO.jl +++ b/src/Utils/IO.jl @@ -86,4 +86,7 @@ function getparameters(basis::AB) where {AB <: AbstractAstroBasis} # Return the dictionary of parameters return paramsdict -end \ No newline at end of file +end + +# for backward compatibility +GetParameters = getparameters \ No newline at end of file diff --git a/test/test_spherical.jl b/test/test_spherical.jl index ad0ff98..0621b72 100644 --- a/test/test_spherical.jl +++ b/test/test_spherical.jl @@ -9,6 +9,8 @@ ltest, nradial = 2, 5 basis = AstroBasis.CB73Basis(lmax=ltest,nradial=nradial,G=G, rb=rb) @test dimension(basis) == 3 @test getparameters(basis)["name"] == "CB73" + # backward compatibility check + @test AstroBasis.GetParameters(basis)["name"] == "CB73" @test getDln(basis,ltest,nradial-1,rb) ≈ 1.6230683210206467 atol=1e-6 @test getUln(basis,ltest,nradial-1,rb) ≈ -0.418381088294792 atol=1e-6 tabUl!(basis,0,rb)