Skip to content

Deprecate Unicode arguments #143

Description

@ohno

We will completely deprecate Unicode arguments (e.g., mₑ, a₀).

function HydrogenAtom(;
Z::Integer=1,
m_e=1.0, mₑ=m_e,
a_0=1.0, a₀=a_0,
E_h=1.0, Eₕ=E_h,
hbar=1.0, ℏ=hbar,
)
return HydrogenAtom(Z, mₑ, a₀, Eₕ, ℏ)
end
function Base.getproperty(model::HydrogenAtom, sym::Symbol)
sym === :mₑ && return getfield(model, :m_e)
sym === :a₀ && return getfield(model, :a_0)
sym === :Eₕ && return getfield(model, :E_h)
sym === :ℏ && return getfield(model, :hbar)
return getfield(model, sym)
end

Related links: #12, #97, #129 (comment).

Metadata

Metadata

Assignees

Labels

breaking changesBreaking changes or major changesjossIssues related to JOSS reviews

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions