From 2eacea2354ad120b57685010feb7b49f05df6289 Mon Sep 17 00:00:00 2001 From: "St. Elmo Wilken" Date: Wed, 9 Nov 2022 23:58:29 +0100 Subject: [PATCH] removed stoich and compress model pretty print --- src/io/show/AbstractMetabolicModel.jl | 9 +-------- src/misc/constants.jl | 1 - 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/io/show/AbstractMetabolicModel.jl b/src/io/show/AbstractMetabolicModel.jl index 155aeb1cd..cc286531c 100644 --- a/src/io/show/AbstractMetabolicModel.jl +++ b/src/io/show/AbstractMetabolicModel.jl @@ -4,12 +4,5 @@ $(TYPEDSIGNATURES) Pretty printing of everything metabolic-modelish. """ function Base.show(io::Base.IO, ::MIME"text/plain", m::AbstractMetabolicModel) - _pretty_print_keyvals(io, "", "Metabolic model of type $(typeof(m))") - if n_reactions(m) <= constants.default_stoich_show_size - println(io, stoichiometry(m)) - else # too big to display nicely - println(io, "S = [...]") - end - _pretty_print_keyvals(io, "Number of reactions: ", string(n_reactions(m))) - _pretty_print_keyvals(io, "Number of metabolites: ", string(n_metabolites(m))) + _pretty_print_keyvals(io, "", "Metabolic model of type $(typeof(m)) with $(n_reactions(m)) reactions and $(n_metabolites(m)) metabolites.") end diff --git a/src/misc/constants.jl b/src/misc/constants.jl index da21f5e40..183ab4440 100644 --- a/src/misc/constants.jl +++ b/src/misc/constants.jl @@ -4,7 +4,6 @@ A named tuple that contains the magic values that are used globally for whatever purposes. """ const constants = ( - default_stoich_show_size = 50_000, default_reaction_bound = 1e3, tolerance = 1e-6, sampling_keep_iters = 100,