Skip to content

Commit d1cb46b

Browse files
committed
up
1 parent 61fb536 commit d1cb46b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/network_analysis.jl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -478,12 +478,12 @@ end
478478
# additional information of the full network, find the reactions, species, and parameters
479479
# that constitute the corresponding sub-reaction network.
480480
function subnetworkmapping(linkageclass, allrxs, complextorxsmap, p)
481-
# Finds the reactions that are part of teh sub-reaction network.
482-
rxinds = sort!(collect(Set(rxidx for rcidx in linkageclass
483-
for rxidx in complextorxsmap[rcidx])))
484-
rxs = allrxs[rxinds]
485-
specset = Set(s for rx in rxs for s in rx.substrates if !isconstant(s))
486-
for rx in rxs
481+
# Finds the reactions that are part of the`` sub-reaction network.
482+
rxinds = sort!(collect(Set(
483+
rxidx for rcidx in linkageclass for rxidx in complextorxsmap[rcidx])))
484+
newrxs = allrxs[rxinds]
485+
specset = Set(s for rx in newrxs for s in rx.substrates if !isconstant(s))
486+
for rx in newrxs
487487
for product in rx.products
488488
!isconstant(product) && push!(specset, product)
489489
end
@@ -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(newrxs, t, newspecs, newps; name = newname, spatial_ivs))
535535
end
536536
subnetworks
537537
end

0 commit comments

Comments
 (0)