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
6fd46e64
Commit
6fd46e64
authored
Apr 13, 2021
by
Miroslav Kratochvil
Browse files
extract hasOnlySubstanceUnits from Species
parent
f938c8c4
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/readsbml.jl
View file @
6fd46e64
...
@@ -172,6 +172,7 @@ function extractModel(mdl::VPtr)::Model
...
@@ -172,6 +172,7 @@ function extractModel(mdl::VPtr)::Model
get_string(sp, :Species_getCompartment),
get_string(sp, :Species_getCompartment),
formula,
formula,
charge,
charge,
ccall(sbml(:Species_getHasOnlySubstanceUnits), Cint, (VPtr,), sp) != 0,
getNotes(sp),
getNotes(sp),
getAnnotation(sp),
getAnnotation(sp),
)
)
...
...
src/structs.jl
View file @
6fd46e64
...
@@ -82,9 +82,10 @@ struct Species
...
@@ -82,9 +82,10 @@ struct Species
compartment
::
String
compartment
::
String
formula
::
Maybe
{
String
}
formula
::
Maybe
{
String
}
charge
::
Maybe
{
Int
}
charge
::
Maybe
{
Int
}
only_substance_units
::
Bool
notes
::
Maybe
{
String
}
notes
::
Maybe
{
String
}
annotation
::
Maybe
{
String
}
annotation
::
Maybe
{
String
}
Species
(
na
,
co
,
f
,
ch
,
no
=
nothing
,
a
=
nothing
)
=
new
(
na
,
co
,
f
,
ch
,
no
,
a
)
Species
(
na
,
co
,
f
,
ch
,
osu
,
no
=
nothing
,
a
=
nothing
)
=
new
(
na
,
co
,
f
,
ch
,
osu
,
no
,
a
)
end
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