Skip to content

Commit

Permalink
Merge pull request #783 from LCSB-BioCore/mk-fix-sparsevec
Browse files Browse the repository at this point in the history
fix sparsevec
  • Loading branch information
exaexa authored May 11, 2023
2 parents 9cde7b4 + 1bebba9 commit 99b3002
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/base/types/SBMLModel.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

2 comments on commit 99b3002

@exaexa
Copy link
Collaborator Author

@exaexa exaexa commented on 99b3002 May 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/83361

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v1.5.1 -m "<description of version>" 99b30024a2eeb42f0c3ca14fa4d5523a28ae769a
git push origin v1.5.1

Please sign in to comment.