Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
oameye committed Oct 26, 2024
1 parent 8e2455f commit c568e42
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/HarmonicVariable.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ end

# when HV is used for substitute, substitute its symbol
function ExprUtils.substitute_all(eq::Union{Num,Equation}, rules::Dict{HarmonicVariable})
return Symbolics.substitute(eq, Dict(zip(getfield.(keys(rules), :symbol), values(rules))))
return Symbolics.substitute(
eq, Dict(zip(getfield.(keys(rules), :symbol), values(rules)))
)
end

function ExprUtils.substitute_all(var::HarmonicVariable, rules)
Expand Down

0 comments on commit c568e42

Please sign in to comment.