Skip to content

Commit f091b19

Browse files
vyuduisaacsas
andcommitted
error update
Co-authored-by: Sam Isaacson <[email protected]>
1 parent a0c4555 commit f091b19

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/networkapi.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1674,7 +1674,9 @@ function iscomplexbalanced(rs::ReactionSystem, rates::Dict{Any, Float64})
16741674
rxns = reactions(rs)
16751675
nc = length(complexes); nr = numreactions(rs); nm = numspecies(rs)
16761676

1677-
if !all(r->ismassaction(r, rs), rxns) error("Not mass action") end
1677+
if !all(r->ismassaction(r, rs), rxns)
1678+
error("The supplied ReactionSystem has reactions that are not ismassaction. Testing for being complex balanced is currently only supported for pure mass action networks.")
1679+
end
16781680

16791681
# Construct kinetic matrix, K
16801682
K = zeros(nr, nc)

0 commit comments

Comments
 (0)