We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 90c9138 + 8909408 commit 0537420Copy full SHA for 0537420
src/interface.jl
@@ -140,7 +140,13 @@ all_symbols(sys) = all_symbols(symbolic_container(sys))
140
Return a dictionary mapping symbols in the system to their default value, if any. This
141
includes parameter symbols. The dictionary must be mutable.
142
"""
143
-default_values(sys) = default_values(symbolic_container(sys))
+function default_values(sys)
144
+ if hasmethod(symbolic_container, Tuple{typeof(sys)})
145
+ default_values(symbolic_container(sys))
146
+ else
147
+ Dict()
148
+ end
149
+end
150
151
struct SolvedVariables end
152
0 commit comments