Skip to content

Commit 2c904fb

Browse files
committed
format
1 parent 6467291 commit 2c904fb

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

src/dsl.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -370,10 +370,10 @@ function make_reaction_system(ex::Expr; name = :(gensym(:ReactionSystem)))
370370
vexprs = get_sexpr(vars_extracted, options, :variables; iv_symbols = ivs)
371371
pexprs = get_pexpr(parameters_extracted, options)
372372
ps, pssym = assign_expr_to_var(!isempty(parameters), pexprs, "ps")
373-
vars, varssym = assign_expr_to_var(!isempty(variables), vexprs, "vars";
373+
vars, varssym = assign_expr_to_var(!isempty(variables), vexprs, "vars";
374374
scalarize = true)
375-
sps, spssym = assign_expr_to_var(!isempty(species), sexprs, "specs"; scalarize = true)
376-
comps, compssym = assign_expr_to_var(!isempty(compound_species), compound_expr,
375+
sps, spssym = assign_expr_to_var(!isempty(species), sexprs, "specs"; scalarize = true)
376+
comps, compssym = assign_expr_to_var(!isempty(compound_species), compound_expr,
377377
"comps"; scalarize = true)
378378
rxexprs = :(CatalystEqType[])
379379
for reaction in reactions

src/network_analysis.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,8 @@ function cache_conservationlaw_eqs!(rn::ReactionSystem, N::AbstractMatrix, col_o
665665
for (i, depidx) in enumerate(depidxs)
666666
scaleby = (N[i, depidx] != 1) ? N[i, depidx] : one(eltype(N))
667667
(scaleby != 0) || error("Error, found a zero in the conservation law matrix where "
668-
* "one was not expected.")
668+
*
669+
"one was not expected.")
669670
coefs = @view N[i, indepidxs]
670671
terms = sum(p -> p[1] / scaleby * p[2], zip(coefs, indepspecs))
671672
eq = depspecs[i] ~ constants[i] - terms

src/reactionsystem.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,8 @@ function make_ReactionSystem_internal(rxs_and_eqs::Vector, iv, us_in, ps_in;
487487

488488
# Filters away any potential observables from `states` and `spcs`.
489489
obs_vars = Set(obs_eq.lhs for obs_eq in observed)
490-
any(in(obs_vars), us_in) && error("Found an observable in the list of unknowns. This is not allowed.")
490+
any(in(obs_vars), us_in) &&
491+
error("Found an observable in the list of unknowns. This is not allowed.")
491492
# us_in = filter(u -> !any(isequal(u, obs_var) for obs_var in obs_vars), us_in)
492493

493494
# Creates a combined iv vector (iv and sivs). This is used later in the function (so that

0 commit comments

Comments
 (0)