Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
LCSB-BioCore
SBML.jl
Commits
7d395ec3
Commit
7d395ec3
authored
Jul 03, 2021
by
Miroslav Kratochvil
🚴
Browse files
move the tiny helper types to their own source file
parent
b24d1b13
Changes
4
Hide whitespace changes
Inline
Side-by-side
docs/src/index.md
View file @
7d395ec3
...
...
@@ -59,6 +59,13 @@ julia> Matrix(S)
# Function reference
## Helper types
```
@autodocs
Modules = [SBML]
Pages = ["types.jl"]
```
## Data structures
```
@autodocs
...
...
src/SBML.jl
View file @
7d395ec3
...
...
@@ -4,14 +4,15 @@ using SBML_jll, Libdl
using
SparseArrays
using
Symbolics
include
(
"types.jl"
)
include
(
"structs.jl"
)
include
(
"version.jl"
)
include
(
"utils.jl"
)
include
(
"readsbml.jl"
)
include
(
"converters.jl"
)
include
(
"math.jl"
)
include
(
"readsbml.jl"
)
include
(
"symbolics.jl"
)
include
(
"utils.jl"
)
sbml
(
sym
::
Symbol
)
=
dlsym
(
SBML_jll
.
libsbml_handle
,
sym
)
...
...
src/structs.jl
View file @
7d395ec3
"""
Maybe{X}
Type shortcut for "
`X`
or
nothing
" or "
nullable
`X`
" in javaspeak. Name
got inspired by our functional friends.
"""
const
Maybe
{
X
}
=
Union
{
Nothing
,
X
}
"""
Part of a measurement unit definition that corresponds to the SBML definition
of `Unit`. For example, the unit "
per
square
megahour
", Mh^(-2), is written as:
...
...
src/utils.jl
View file @
7d395ec3
const
VPtr
=
Ptr
{
Cvoid
}
"""
function getS(m::SBML.Model; zeros=spzeros)::Tuple{Vector{String},Vector{String},AbstractMatrix{Float64}}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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