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
"Unrecognized variables $(species[1]) detected in reaction expression. Since the flag @require_declaration is declared, all species must be explicitly declared with the @species macro."))
533
+
"Unrecognized variables $(join(species, ", ")) detected in reaction expression: \"$(string(reaction.rxexpr))\". Since the flag @require_declaration is declared, all species must be explicitly declared with the @species macro."))
536
534
end
537
535
end
538
536
@@ -541,11 +539,11 @@ function extract_species_and_parameters!(reactions, excluded_syms; requiredec =
"Unrecognized parameter $(parameters[1]) detected in rate expression $(reaction.rate). Since the flag @require_declaration is declared, all parameters must be explicitly declared with the @parameters macro."))
542
+
"Unrecognized parameter $(join(parameters, ", ")) detected in rate expression:$(reaction.rate) for the following reaction expression: \"$(string(reaction.rxexpr))\". Since the flag @require_declaration is declared, all parameters must be explicitly declared with the @parameters macro."))
545
543
for reactant in Iterators.flatten((reaction.substrates, reaction.products))
"Unrecognized parameters $(parameters[1]) detected in the stoichiometry for reactant $(reactant.reactant). Since the flag @require_declaration is declared, all parameters must be explicitly declared with the @parameters macro."))
546
+
"Unrecognized parameters $(join(parameters, ", ")) detected in the stoichiometry for reactant $(reactant.reactant) in the following reaction expression: \"$(string(reaction.rxpexpr))\". Since the flag @require_declaration is declared, all parameters must be explicitly declared with the @parameters macro."))
549
547
end
550
548
end
551
549
@@ -734,7 +732,7 @@ function read_equations_options(options, variables_declared; requiredec = false)
734
732
error("A forbidden symbol ($(diff_var)) was used as an variable in this differential equation: $eq")
"Unrecognized symbol $(diff_var) was used as a variable in an equation. Since the @require_declaration flag is set, all variables in equations must be explicitly declared via @variables, @species, or @parameters."))
735
+
"Unrecognized symbol $(diff_var) was used as a variable in an equation: \"$eq\". Since the @require_declaration flag is set, all variables in equations must be explicitly declared via @variables, @species, or @parameters."))
if (requiredec &&!in(obs_name, species_n_vars_declared))
792
790
throw(UndeclaredSymbolicError(
793
-
"An undeclared variable ($obs_name) was declared as an observable. Since the flag @require_declaration is set, all variables must be declared with the @species, @parameters, or @variables macros."))
791
+
"An undeclared variable ($obs_name) was declared as an observable in the following observable equation: \"$obs_eq\". Since the flag @require_declaration is set, all variables must be declared with the @species, @parameters, or @variables macros."))
794
792
end
795
793
isempty(ivs) ||
796
794
error("An observable ($obs_name) was given independent variable(s). These should not be given, as they are inferred automatically.")
0 commit comments