Skip to content

Commit 96bbec2

Browse files
refactor: don't check isparameter in check_variables and check_parameters
1 parent 99978e2 commit 96bbec2

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/utils.jl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,6 @@ function check_parameters(ps, iv)
124124
for p in ps
125125
isequal(iv, p) &&
126126
throw(ArgumentError("Independent variable $iv not allowed in parameters."))
127-
isparameter(p) ||
128-
throw(ArgumentError("$p is not a parameter."))
129127
end
130128
end
131129

@@ -153,8 +151,6 @@ function check_variables(dvs, iv)
153151
throw(ArgumentError("Independent variable $iv not allowed in dependent variables."))
154152
(is_delay_var(iv, dv) || occursin(iv, dv)) ||
155153
throw(ArgumentError("Variable $dv is not a function of independent variable $iv."))
156-
isparameter(dv) &&
157-
throw(ArgumentError("$dv is not an unknown. It is a parameter."))
158154
end
159155
end
160156

0 commit comments

Comments
 (0)