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