You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lattice::DiGraph; init_digraph =true) where {S, T}
33
-
(T <:AbstractSpatialReaction) ||error("The second argument must be a vector of AbstractSpatialReaction subtypes.") # There probably some better way to ascertain that T has that type. Not sure how.
42
+
# There probably some better way to ascertain that T has that type. Not sure how.
43
+
if!(T <:AbstractSpatialReaction)
44
+
error("The second argument must be a vector of AbstractSpatialReaction subtypes.")
45
+
end
34
46
35
-
spat_species = (isempty(spatial_reactions) ? Vector{BasicSymbolic{Real}}[] :unique(reduce(vcat, [spatial_species(sr) for sr in spatial_reactions])))
47
+
ifisempty(spatial_reactions)
48
+
spat_species = Vector{BasicSymbolic{Real}}[]
49
+
else
50
+
spat_species =unique(reduce(vcat, [spatial_species(sr) for sr in spatial_reactions]))
srs_edge_parameters = (isempty(spatial_reactions) ? Vector{BasicSymbolic{Real}}[] :setdiff(reduce(vcat, [parameters(sr) for sr in spatial_reactions]), parameters(rs)))
ps = [parameters(rs); setdiff([edge_parameters; vertex_parameters], parameters(rs))] # Ensures that the order begins similarly to in the non-spatial ReactionSystem.
61
+
# Ensures the parameter order begins similarly to in the non-spatial ReactionSystem.
0 commit comments