You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/utils.jl
+2-7Lines changed: 2 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -186,13 +186,8 @@ function check_equations(eqs, iv)
186
186
187
187
for eq in eqs
188
188
vars, pars =collect_vars(eq, iv)
189
-
ifisempty(vars)
190
-
ifisempty(pars)
191
-
throw(ArgumentError("Equation $eq contains no variables or parameters."))
192
-
else
193
-
throw(ArgumentError("Equation $eq contains only parameters, but relationships between parameters should be specified with defaults or parameter_dependencies."))
194
-
end
195
-
end
189
+
isempty(vars) &&!isempty(pars) &&
190
+
throw(ArgumentError("Equation $eq contains only parameters, but relationships between parameters should be specified with defaults or parameter_dependencies."))
0 commit comments