Skip to content

Commit 61fb536

Browse files
committed
up
1 parent 4603532 commit 61fb536

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/network_analysis.jl

+5-5
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ end
118118

119119
# creates a *sparse* reaction complex matrix
120120
function reactioncomplexes(::Type{SparseMatrixCSC{Int, Int}}, rn::ReactionSystem,
121-
complextorxsmap)
121+
complextorxsmap)
122122
# computes the I, J, and V vectors used for the sparse matrix (read about sparse matrix
123123
# representation for more information)
124124
complexes = collect(keys(complextorxsmap))
@@ -480,7 +480,7 @@ end
480480
function subnetworkmapping(linkageclass, allrxs, complextorxsmap, p)
481481
# Finds the reactions that are part of teh sub-reaction network.
482482
rxinds = sort!(collect(Set(rxidx for rcidx in linkageclass
483-
for rxidx in complextorxsmap[rcidx])))
483+
for rxidx in complextorxsmap[rcidx])))
484484
rxs = allrxs[rxinds]
485485
specset = Set(s for rx in rxs for s in rx.substrates if !isconstant(s))
486486
for rx in rxs
@@ -531,7 +531,7 @@ function subnetworks(rs::ReactionSystem)
531531
newrxs, newspecs, newps = subnetworkmapping(lcs[i], rxs, complextorxsmap, p)
532532
newname = Symbol(nameof(rs), "_", i)
533533
push!(subnetworks,
534-
ReactionSystem(reacs, t, specs, newps; name = newname, spatial_ivs))
534+
ReactionSystem(reacs, t, specs, newps; name = newname, spatial_ivs))
535535
end
536536
subnetworks
537537
end
@@ -745,8 +745,8 @@ function cache_conservationlaw_eqs!(rn::ReactionSystem, N::AbstractMatrix, col_o
745745
# finds the coefficient (in the conservation law) of the species that is eliminated
746746
# by this conservation law
747747
scaleby = (N[i, depidx] != 1) ? N[i, depidx] : one(eltype(N))
748-
(scaleby != 0) || error("Error, found a zero in the conservation law matrix where "
749-
* "one was not expected.")
748+
(scaleby != 0) ||
749+
error("Error, found a zero in the conservation law matrix where one was not expected.")
750750

751751
# creates, for this conservation law, the sum of all independent species (weighted by
752752
# the ratio between the coefficient of the species and the species which is elimianted

0 commit comments

Comments
 (0)