@@ -101,20 +101,20 @@ end
101101# Tests `ReactionSystem`s.
102102let
103103 @species x (t) y (t)
104- @parameters k v n
104+ @parameters k v n
105105 rs1 = @reaction_network rs begin
106106 mm (x, v, k), 0 --> x
107107 mmr (x, v, k), 0 --> x
108108 hill (x, v, k, n), 0 --> x
109109 hillr (x, v, k, n), 0 --> x
110- hillar (x, y, v, k, n), 0 --> x
110+ hillar (x, y, v, k, n), 0 --> x
111111 end
112112 rs2 = @reaction_network rs begin
113113 v * x / (x + k), 0 --> x
114114 v * k / (x + k), 0 --> x
115115 v * (x^ n) / (x^ n + k^ n), 0 --> x
116116 v * (k^ n) / (x^ n + k^ n), 0 --> x
117- v * (x^ n) / (x^ n + y^ n + k^ n), 0 --> x
117+ v * (x^ n) / (x^ n + y^ n + k^ n), 0 --> x
118118 end
119119
120120 @test Catalyst. expand_registered_functions (rs1) == rs2
@@ -123,14 +123,14 @@ end
123123# Tests `Reaction`s.
124124let
125125 @species x (t) y (t)
126- @parameters k v n
127-
126+ @parameters k v n
127+
128128 r1 = @reaction mm (x, v, k), 0 --> x
129129 r2 = @reaction mmr (x, v, k), 0 --> x
130130 r3 = @reaction hill (x, v, k, n), 0 --> x
131131 r4 = @reaction hillr (x, v, k, n), 0 --> x
132132 r5 = @reaction hillar (x, y, v, k, n), 0 --> x + y
133-
133+
134134 @test isequal (Catalyst. expand_registered_functions (r1). rate, v * x / (x + k))
135135 @test isequal (Catalyst. expand_registered_functions (r2). rate, v * k / (x + k))
136136 @test isequal (Catalyst. expand_registered_functions (r3). rate, v * (x^ n) / (x^ n + k^ n))
@@ -143,14 +143,14 @@ end
143143let
144144 @parameters T
145145 @variables X (T) Y (T)
146- @parameters K V N
147-
146+ @parameters K V N
147+
148148 eq1 = 0 ~ mm (X, V, K)
149149 eq2 = 0 ~ mmr (X, V, K)
150150 eq3 = 0 ~ hill (X, V, K, N)
151151 eq4 = 0 ~ hillr (X, V, K, N)
152152 eq5 = 0 ~ hillar (X, Y, V, K, N)
153-
153+
154154 @test isequal (Catalyst. expand_registered_functions (eq1), 0 ~ V * X / (X + K))
155155 @test isequal (Catalyst. expand_registered_functions (eq2), 0 ~ V * K / (X + K))
156156 @test isequal (Catalyst. expand_registered_functions (eq3), 0 ~ V * (X^ N) / (X^ N + K^ N))
166166 @parameters v K
167167 eqs = [
168168 Reaction (mm (X,v,K), [], [X]),
169- mm (V,v,K) ~ V + 1
169+ mm (V,v,K) ~ V + 1
170170 ]
171171 @named rs = ReactionSystem (eqs, t)
172172
211211 (v * (X^ n) / (X^ n + K^ n) > 1000.0 ) => [X ~ v * (K^ n) / (X^ n + K^ n) + 2 ]
212212 ]
213213 continuous_events = ModelingToolkit. SymbolicContinuousCallback .(continuous_events)
214- discrete_events = ModelingToolkit. SymbolicDiscreteCallback .(discrete_events)
214+ discrete_events = ModelingToolkit. SymbolicDiscreteCallback .(discrete_events)
215215 @test isequal (only (Catalyst. get_rxs (rs_expanded)). rate, v0 + v * (X^ n) / (X^ n + Y^ n + K^ n))
216216 @test isequal (get_continuous_events (rs_expanded), continuous_events)
217217 @test isequal (get_discrete_events (rs_expanded), discrete_events)
0 commit comments