Browse Source

Added some docs syntax changes

pull/69/head
bosonbaas 2 weeks ago
parent
commit
7fe11482c4
  1. 3
      examples/covid/chime/chime-cset.jl
  2. 2
      examples/covid/coexist/coexist.jl
  3. 2
      examples/enzymes/enzyme_reactions.jl

3
examples/covid/chime/chime-cset.jl

@ -2,6 +2,7 @@ using AlgebraicPetri
using OrdinaryDiffEq
using Plots
using Catlab.Meta
using Catlab.CategoricalAlgebra
using JSON
import OrdinaryDiffEq: ODEProblem
@ -34,4 +35,4 @@ plot(sol)
## Getting Sharable JSON
sir_cset_string = LabelledReactionNet{String, Int}((:S=>990, :I=>10, :R=>0), (:inf, β_text)=>((:S, :I)=>(:I,:I)), (:rec, γ_text)=>(:I=>:R))
JSON.print(sir_cset_string.tables, 2)
JSON.print(tables(sir_cset_string), 2)

2
examples/covid/coexist/coexist.jl

@ -172,7 +172,7 @@ save_fig(Graph(threeNCoexist_algpetri), "3ncoexist_petri", "svg"); # hide
# We can JSON to convert this Petri net into an
# easily shareable format
JSON.print(threeNCoexist_algpetri.tables)
JSON.print(tables(threeNCoexist_algpetri), 2)
# We can now easily generate a solver for DifferentialEquations.jl
# because we encoded the intitial parameters and rates throughout

2
examples/enzymes/enzyme_reactions.jl

@ -193,7 +193,7 @@ functor(x) = oapply(x, Dict(
:catLsubG=>cat_sub(L,G)));
function enzyme_uwd(enzymes::Array{Symbol}, substrates::Array{Symbol})
rel = RelationDiagram{Symbol}(0)
rel = RelationDiagram(0)
chemicals = vcat(substrates, enzymes)

Loading…
Cancel
Save