Skip to content

Commit bde8cbd

Browse files
Fix some downstream Symbolics 3 compatibility issues
1 parent e4be118 commit bde8cbd

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

src/parse.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ parse a <ci> node
7373
function parse_ci(node)
7474
# c = Symbol(Meta.parse(strip(node.content)))
7575
c = Symbol(string(strip(node.content)))
76-
Num(Variable(c))
76+
(@variables $c)[1]
7777
end
7878

7979
########## Parse piecewise ###################################################

src/utils.jl

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,6 @@ function mathml_to_nums(xml::EzXML.Document)
2020
mathml_to_nums(doc_root)
2121
end
2222

23-
function mathml_to_nums(node::EzXML.Node)
24-
namespace(node) != mathml_ns && error("need to provide mathml node")
25-
cs = findall("//x:ci/text()", node, ["x" => mathml_ns])
26-
vars = @. Symbol(strip(string(cs)))
27-
unique!(vars)
28-
@. Num(Variable{Symbolics.FnType{Tuple{Any},Real}}(vars))
29-
end
30-
31-
3223
"""
3324
extract_mathml()
3425

0 commit comments

Comments
 (0)