Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
LCSB-BioCore
SBML.jl
Commits
74e64ee7
Commit
74e64ee7
authored
Jun 22, 2021
by
Miroslav Kratochvil
Browse files
add test for initial cs/amounts
parent
6b710965
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/loadmodels.jl
View file @
74e64ee7
...
...
@@ -68,3 +68,12 @@ end
m
=
readSBML
(
joinpath
(
@__DIR__
,
"data"
,
"sbml00852.xml"
))
@test
all
(
contains_time
.
(
r
.
kinetic_math
for
(
_
,
r
)
in
m
.
reactions
))
end
@testset
"Initial amounts and concentrations"
begin
m
=
readSBML
(
joinpath
(
@__DIR__
,
"data"
,
"sbml00852.xml"
))
@test
all
(
isnothing
.
(
SBML
.
initial_concentrations
(
m
)))
@test
length
(
SBML
.
initial_amounts
(
m
))
==
4
@test
sum
(
SBML
.
initial_amounts
(
m
))
==
0.001
@test
sum
(
SBML
.
initial_concentrations
(
m
,
convert_amounts
=
true
))
==
0.001
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