Commit 3233b323 authored by Miroslav Kratochvil's avatar Miroslav Kratochvil
Browse files

extract boundary condition for species

parent 3f7edbe7
......@@ -231,6 +231,11 @@ function extractModel(mdl::VPtr)::Model
species[get_string(sp, :Species_getId)] = Species(
get_optional_string(sp, :Species_getName),
get_string(sp, :Species_getCompartment),
get_optional_bool(
sp,
:Species_isSetBoundaryCondition,
:Species_getBoundaryCondition,
),
formula,
charge,
ia,
......
......@@ -129,14 +129,15 @@ identifier, `formula`, `charge`, and additional `notes` and `annotation`.
struct Species
name::Maybe{String}
compartment::String
boundary_condition::Maybe{Bool}
formula::Maybe{String}
charge::Maybe{Int}
initial_amount::Maybe{Tuple{Float64,String}}
only_substance_units::Maybe{Bool}
notes::Maybe{String}
annotation::Maybe{String}
Species(na, co, f, ch, ia, osu, no = nothing, a = nothing) =
new(na, co, f, ch, ia, osu, no, a)
Species(na, co, b, f, ch, ia, osu, no = nothing, a = nothing) =
new(na, co, b, f, ch, ia, osu, no, a)
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