diff --git a/Project.toml b/Project.toml index 1d5443614..ee3a4ea68 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "COBREXA" uuid = "babc4406-5200-4a30-9033-bf5ae714c842" authors = ["The developers of COBREXA.jl"] -version = "1.5" +version = "1.5.1" [deps] Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b" diff --git a/src/base/types/SBMLModel.jl b/src/base/types/SBMLModel.jl index 96c0633b8..afd13ebb0 100644 --- a/src/base/types/SBMLModel.jl +++ b/src/base/types/SBMLModel.jl @@ -180,7 +180,7 @@ $(TYPEDSIGNATURES) Objective of the [`SBMLModel`](@ref). """ function objective(model::SBMLModel)::SparseVec - res = sparsevec([], [], n_reactions(model)) + res = spzeros(n_reactions(model)) objective = get(model.sbml.objectives, model.active_objective, nothing) if isnothing(objective) && length(model.sbml.objectives) == 1