Skip to content

Commit

Permalink
Merge pull request #39 from SciML/symbolics3
Browse files Browse the repository at this point in the history
Fix some downstream Symbolics 3 compatibility issues
  • Loading branch information
ChrisRackauckas committed Aug 19, 2021
2 parents e4be118 + 1b0da14 commit 9c10b75
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "MathML"
uuid = "abcecc63-2b08-419c-80c4-c63dca6fa478"
authors = ["anand <anandj@uchicago.edu> and contributors"]
version = "0.1.8"
version = "0.1.9"

[deps]
AbstractTrees = "1520ce14-60c1-5f80-bbc7-55ef81b5835c"
Expand Down
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 9c10b75

Please sign in to comment.