Skip to content

Commit

Permalink
Fix some downstream Symbolics 3 compatibility issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Aug 19, 2021
1 parent e4be118 commit bde8cbd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion src/parse.jl
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ parse a <ci> node
function parse_ci(node)
# c = Symbol(Meta.parse(strip(node.content)))
c = Symbol(string(strip(node.content)))
Num(Variable(c))
(@variables $c)[1]
end

########## Parse piecewise ###################################################
Expand Down
9 changes: 0 additions & 9 deletions src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,6 @@ function mathml_to_nums(xml::EzXML.Document)
mathml_to_nums(doc_root)
end

function mathml_to_nums(node::EzXML.Node)
namespace(node) != mathml_ns && error("need to provide mathml node")
cs = findall("//x:ci/text()", node, ["x" => mathml_ns])
vars = @. Symbol(strip(string(cs)))
unique!(vars)
@. Num(Variable{Symbolics.FnType{Tuple{Any},Real}}(vars))
end


"""
extract_mathml()
Expand Down

0 comments on commit bde8cbd

Please sign in to comment.