Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
LCSB-BioCore
COBREXA.jl
Commits
0937e6ca
Commit
0937e6ca
authored
Nov 11, 2021
by
Miroslav Kratochvil
Browse files
update SBMLModel to dense bounds
parent
9961dd0f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/base/types/SBMLModel.jl
View file @
0937e6ca
...
...
@@ -47,12 +47,12 @@ function stoichiometry(model::SBMLModel)::SparseMat
end
"""
bounds(model::SBMLModel)::Tuple{
SparseVec,SparseVec
}
bounds(model::SBMLModel)::Tuple{
Vector{Float64},Vector{Float64}
}
Get the lower and upper flux bounds of model [`SBMLModel`](@ref). Throws `DomainError` in
case if the SBML contains mismatching units.
"""
function
bounds
(
model
::
SBMLModel
)
::
Tuple
{
SparseVec
,
SparseVec
}
function
bounds
(
model
::
SBMLModel
)
::
Tuple
{
Vector
{
Float64
},
Vector
{
Float64
}
}
lbu
,
ubu
=
SBML
.
flux_bounds
(
model
.
sbml
)
unit
=
lbu
[
1
][
2
]
...
...
@@ -67,7 +67,7 @@ function bounds(model::SBMLModel)::Tuple{SparseVec,SparseVec}
),
)
return
sparse
.
(
(
getvalue
.
(
lbu
),
getvalue
.
(
ubu
))
)
return
(
getvalue
.
(
lbu
),
getvalue
.
(
ubu
))
end
"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment