Skip to content

Commit

Permalink
Update reaction_network.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Jun 8, 2018
1 parent e451ac9 commit 792e7b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/reaction_network.jl
Expand Up @@ -50,13 +50,13 @@ Example systems:

#Macro to create a reaction network model.
macro reaction_network(name, ex::Expr, p...)
coordinate(name, MacroTools.prettify(ex), p, :no___noise___scaling)
coordinate(name, MacroTools.striplines(ex), p, :no___noise___scaling)
end

#Macro to create a reaction network model. Multiple dispatch is used to allow for SDE noise scalling.
macro reaction_network(name, scale_noise, ex::Expr, p...)
in(scale_noise, p) || (p = (p..., scale_noise))
coordinate(name, MacroTools.prettify(ex), p, scale_noise)
coordinate(name, MacroTools.striplines(ex), p, scale_noise)
end

#Used to give a warning if someone uses the old macro.
Expand Down

0 comments on commit 792e7b9

Please sign in to comment.