Commit 6fd46e64 authored by Miroslav Kratochvil's avatar Miroslav Kratochvil
Browse files

extract hasOnlySubstanceUnits from Species

parent f938c8c4
...@@ -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),
) )
......
...@@ -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
""" """
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment