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
bd12b466
Commit
bd12b466
authored
Apr 13, 2021
by
Miroslav Kratochvil
Browse files
Species.name is optional, don't fail if it's not present
Improves upon #35
parent
21794da5
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/readsbml.jl
View file @
bd12b466
...
@@ -168,7 +168,7 @@ function extractModel(mdl::VPtr)::Model
...
@@ -168,7 +168,7 @@ function extractModel(mdl::VPtr)::Model
end
end
end
end
species[get_string(sp, :Species_getId)] = Species(
species[get_string(sp, :Species_getId)] = Species(
get_string(sp, :Species_getName),
get_
optional_
string(sp, :Species_getName),
get_string(sp, :Species_getCompartment),
get_string(sp, :Species_getCompartment),
formula,
formula,
charge,
charge,
...
...
src/structs.jl
View file @
bd12b466
...
@@ -78,7 +78,7 @@ Species metadata -- contains a human-readable `name`, a `compartment`
...
@@ -78,7 +78,7 @@ Species metadata -- contains a human-readable `name`, a `compartment`
identifier, `formula`, `charge`, and additional `notes` and `annotation`.
identifier, `formula`, `charge`, and additional `notes` and `annotation`.
"""
"""
struct
Species
struct
Species
name
::
String
name
::
Maybe
{
String
}
compartment
::
String
compartment
::
String
formula
::
Maybe
{
String
}
formula
::
Maybe
{
String
}
charge
::
Maybe
{
Int
}
charge
::
Maybe
{
Int
}
...
...
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