diff --git a/dev/.documenter-siteinfo.json b/dev/.documenter-siteinfo.json index e5fdba2..bdfcd26 100644 --- a/dev/.documenter-siteinfo.json +++ b/dev/.documenter-siteinfo.json @@ -1 +1 @@ -{"documenter":{"julia_version":"1.9.4","generation_timestamp":"2023-12-09T21:08:40","documenter_version":"1.2.1"}} \ No newline at end of file +{"documenter":{"julia_version":"1.9.4","generation_timestamp":"2023-12-09T21:53:39","documenter_version":"1.2.1"}} \ No newline at end of file diff --git a/dev/canonical/index.html b/dev/canonical/index.html index e4051c0..14a17e3 100644 --- a/dev/canonical/index.html +++ b/dev/canonical/index.html @@ -107,18 +107,18 @@ A.gene_notes(m::Model, id::String) = m.genes[id].notes function A.stoichiometry(m::Model) - midxs = Dict(mid => idx for (idx, (mid, _)) in enumerate(m.metabolites)) + midxs = Dict(mid => idx for (idx, mid) in enumerate(A.metabolites(m))) I = Int[] J = Int[] V = Float64[] - for (ridx, (_, r)) in enumerate(m.reactions) - for (smid, v) in r.stoichiometry + for (ridx, rid) in enumerate(A.reactions(m)) + for (smid, v) in m.reactions[rid].stoichiometry push!(I, midxs[smid]) push!(J, ridx) push!(V, v) end end - sparse(I, J, V, length(m.metabolites), length(m.reactions)) + sparse(I, J, V, A.n_metabolites(m), A.n_reactions(m)) end A.bounds(m::Model) = ( @@ -235,4 +235,4 @@ A.save(m, path) A.run_fbcmodel_file_tests(Model, path, name = "small model") end;
Test Summary: | Pass Total Time
-Model `small model' of type AbstractFBCModels.CanonicalModel.Model | 45 45 0.1s
This page was generated using Literate.jl.
Settings
This document was generated with Documenter.jl version 1.2.1 on Saturday 9 December 2023. Using Julia version 1.9.4.