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.
1 parent 5d94f39 commit cf246baCopy full SHA for cf246ba
src/utils.jl
@@ -126,6 +126,8 @@ function check_parameters(ps, iv)
126
for p in ps
127
isequal(iv, p) &&
128
throw(ArgumentError("Independent variable $iv not allowed in parameters."))
129
+ isparameter(p) ||
130
+ throw(ArgumentError("$p is not a parameter."))
131
end
132
133
@@ -150,6 +152,8 @@ function check_variables(dvs, iv)
150
152
throw(ArgumentError("Independent variable $iv not allowed in dependent variables."))
151
153
(is_delay_var(iv, dv) || occursin(iv, dv)) ||
154
throw(ArgumentError("Variable $dv is not a function of independent variable $iv."))
155
+ isparameter(dv) &&
156
+ throw(ArgumentError("$dv is not a state. It is a parameter."))
157
158
159
0 commit comments