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
get_string(sp, :Species_getCompartment),
formula,
charge,
ccall(sbml(:Species_getHasOnlySubstanceUnits), Cint, (VPtr,), sp) != 0,
getNotes(sp),
getAnnotation(sp),
)
......
......@@ -82,9 +82,10 @@ struct Species
compartment::String
formula::Maybe{String}
charge::Maybe{Int}
only_substance_units::Bool
notes::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
"""
......
Supports Markdown
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