Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacsas committed Aug 14, 2024
1 parent 4feb9a5 commit ea3078d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/dsl.jl
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,13 @@ macro species(ex...)
resize!(vars.args, idx + length(lastarg.args) + 1)
for sym in lastarg.args
vars.args[idx] = :($sym = ModelingToolkit.wrap(setmetadata(
ModelingToolkit.value($sym), VariableSpecies, true)))
ModelingToolkit.value($sym), Catalyst.VariableSpecies, true)))
idx += 1
end

# check nothing was declared isconstantspecies
ex = quote
all(!isconstant ModelingToolkit.value, $lastarg) ||
all(!Catalyst.isconstant ModelingToolkit.value, $lastarg) ||
throw(ArgumentError("isconstantspecies metadata can only be used with parameters."))
end
vars.args[idx] = ex
Expand Down Expand Up @@ -150,7 +150,7 @@ macro reaction_network(name::Expr, ex::Expr)
MacroTools.striplines(ex); name = :($(esc(name.args[1])))))))
end

macro reaction_network(ex::Expr)
macro reaction_network(ex::Expr)
ex = MacroTools.striplines(ex)

# no name but equations: @reaction_network begin ... end ...
Expand Down

0 comments on commit ea3078d

Please sign in to comment.