Skip to content

Commit

Permalink
refactor: rename notation to isotope_notation
Browse files Browse the repository at this point in the history
  • Loading branch information
Beforerr committed Dec 6, 2024
1 parent 45e0747 commit dfa337b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/properties.jl
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ end
mass_energy(p::AbstractParticle) = _format_energy(uconvert(u"eV", p.mass * Unitful.c^2))

# https://en.wikipedia.org/wiki/Isotope#Notation
function notation(p::AbstractParticle; method=:hyphen)
function isotope_notation(p::AbstractParticle; method=:hyphen)
sym_str = String(symbol(p))
if !is_chemical_element(p) || is_default_isotope(p)
return sym_str
Expand All @@ -114,7 +114,7 @@ function notation(p::AbstractParticle; method=:hyphen)
end

function particle_symbol(p::AbstractParticle; method=:hyphen)
return notation(p; method) * charge_symbol(p)
return isotope_notation(p; method) * charge_symbol(p)
end

function Base.getproperty(p::AbstractParticle, s::Symbol)
Expand Down

0 comments on commit dfa337b

Please sign in to comment.