@@ -148,26 +148,28 @@ sol = solve(jumpProblem, Tsit5())
148148# test to check lack of dependency graphs is caught in Coevolve for systems with non-maj
149149# jumps
150150let
151- maj_rate = [1. ]
151+ maj_rate = [1.0 ]
152152 react_stoich_ = [Vector {Pair{Int, Int}} ()]
153153 net_stoich_ = [[1 => 1 ]]
154- mass_action_jump_ = MassActionJump (maj_rate, react_stoich_, net_stoich_; scale_rates= false )
154+ mass_action_jump_ = MassActionJump (maj_rate, react_stoich_, net_stoich_;
155+ scale_rates = false )
155156
156157 affect! = function (integrator)
157158 integrator. u[1 ] -= 1
158159 end
159- cs_rate1 (u,p, t) = 0.2 * u[1 ]
160+ cs_rate1 (u, p, t) = 0.2 * u[1 ]
160161 constant_rate_jump = ConstantRateJump (cs_rate1, affect!)
161162 jumpset_ = JumpSet ((), (constant_rate_jump,), nothing , mass_action_jump_)
162163
163164 u0 = [0 ]
164165 tspan = (0.0 , 30.0 )
165166 dprob_ = DiscreteProblem (u0, tspan)
166167 alg = Coevolve ()
167- @test_throws ErrorException JumpProblem (dprob_, alg, jumpset_, save_positions= (false , false ))
168+ @test_throws ErrorException JumpProblem (dprob_, alg, jumpset_,
169+ save_positions = (false , false ))
168170
169171 vrj = VariableRateJump (cs_rate1, affect!; urate = ((u, p, t) -> 1.0 ),
170- rateinterval = ((u,p, t) -> 1.0 ))
172+ rateinterval = ((u, p, t) -> 1.0 ))
171173 @test_throws ErrorException JumpProblem (dprob_, alg, mass_action_jump_, vrj;
172- save_positions= (false , false ))
173- end
174+ save_positions = (false , false ))
175+ end
0 commit comments