Skip to content

Commit

Permalink
compare Sets instead of setdiff
Browse files Browse the repository at this point in the history
  • Loading branch information
sumiya11 committed Oct 25, 2024
1 parent bf78130 commit 91a2aa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/monomials/orderings.jl
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ end
# Transform orderings

function map_variables(vars, varmap)
if !isempty(setdiff(vars, collect(keys(varmap))))
if !(Set(vars) == Set(collect(keys(varmap))))
# Fallback to string representation
varmap_str = Dict(string(k) => v for (k, v) in varmap)
vars_str = map(string, vars)
Expand Down

0 comments on commit 91a2aa1

Please sign in to comment.