Skip to content

Commit 2b90473

Browse files
committed
formating
1 parent 55dce8b commit 2b90473

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/registered_functions.jl

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ expand_registered_functions(expr)
116116
117117
Takes an expression, and expands registered function expressions. E.g. `mm(X,v,K)` is replaced with v*X/(X+K). Currently supported functions: `mm`, `mmr`, `hill`, `hillr`, and `hill`.
118118
"""
119-
function expand_registered_functions(expr)
119+
function expand_registered_functions(expr)
120120
if hasnode(is_catalyst_function, expr)
121121
expr = replacenode(expr, expand_catalyst_function)
122122
end
@@ -126,7 +126,8 @@ end
126126
# Checks whether an expression corresponds to a catalyst function call (e.g. `mm(X,v,K)`).
127127
function is_catalyst_function(expr)
128128
iscall(expr) || (return false)
129-
return operation(expr) in [Catalyst.mm, Catalyst.mmr, Catalyst.hill, Catalyst.hillr, Catalyst.hillar]
129+
return operation(expr) in [
130+
Catalyst.mm, Catalyst.mmr, Catalyst.hill, Catalyst.hillr, Catalyst.hillar]
130131
end
131132

132133
# If the input expression corresponds to a catalyst function call (e.g. `mm(X,v,K)`), returns
@@ -184,17 +185,15 @@ end
184185
function expand_registered_functions(rs::ReactionSystem)
185186
if isdefined(Main, :Infiltrator)
186187
Main.infiltrate(@__MODULE__, Base.@locals, @__FILE__, @__LINE__)
187-
end
188+
end
188189

189190
@set! rs.eqs = Catalyst.expand_registered_functions(get_eqs(rs))
190191
@set! rs.rxs = Catalyst.expand_registered_functions(get_rxs(rs))
191192
if !isempty(ModelingToolkit.get_continuous_events(rs))
192-
@set! rs.continuous_events =
193-
Catalyst.expand_registered_functions(ModelingToolkit.get_continuous_events(rs))
193+
@set! rs.continuous_events = Catalyst.expand_registered_functions(ModelingToolkit.get_continuous_events(rs))
194194
end
195195
if !isempty(ModelingToolkit.get_discrete_events(rs))
196-
@set! rs.discrete_events =
197-
Catalyst.expand_registered_functions(ModelingToolkit.get_discrete_events(rs))
196+
@set! rs.discrete_events = Catalyst.expand_registered_functions(ModelingToolkit.get_discrete_events(rs))
198197
end
199198
return rs
200199
end

0 commit comments

Comments
 (0)