Skip to content

Commit f1fe0ca

Browse files
fix: fix parsing of costs and constraints for @mtkmodel metadata
1 parent 3bcc420 commit f1fe0ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/systems/model_parsing.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1160,7 +1160,7 @@ function parse_constraints!(cons, dict, body)
11601160
Base.remove_linenums!(body)
11611161
for arg in body.args
11621162
push!(cons, arg)
1163-
push!(dict[:constraints], readable_code.(cons)...)
1163+
push!(dict[:constraints], readable_code(arg))
11641164
end
11651165
end
11661166

@@ -1169,7 +1169,7 @@ function parse_costs!(costs, dict, body)
11691169
Base.remove_linenums!(body)
11701170
for arg in body.args
11711171
push!(costs, arg)
1172-
push!(dict[:costs], readable_code.(costs)...)
1172+
push!(dict[:costs], readable_code(arg))
11731173
end
11741174
end
11751175

0 commit comments

Comments
 (0)