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
68e0e0b5
Unverified
Commit
68e0e0b5
authored
Jul 15, 2021
by
Miroslav Kratochvil
🚴
Committed by
GitHub
Jul 15, 2021
Browse files
Merge pull request #120 from giordano/mg/version
Rename `SBMLVersion` -> `Version` and unexport it
parents
8fc3bcb5
a9007924
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/SBML.jl
View file @
68e0e0b5
...
...
@@ -18,7 +18,7 @@ include("utils.jl")
sbml
(
sym
::
Symbol
)
=
dlsym
(
SBML_jll
.
libsbml_handle
,
sym
)
export
SBMLVersion
,
readSBML
,
getS
,
getLBs
,
getUBs
,
getOCs
export
readSBML
,
getS
,
getLBs
,
getUBs
,
getOCs
export
set_level_and_version
,
libsbml_convert
,
convert_simplify_math
end
# module
src/version.jl
View file @
68e0e0b5
"""
function SBMLVersion()
function SBML
.
Version()
Get the version of the used SBML library in Julia version format.
"""
function
SBML
Version
()
::
VersionNumber
function
Version
()
::
VersionNumber
VersionNumber
(
unsafe_string
(
ccall
(
sbml
(
:
getLibSBMLDottedVersion
),
Cstring
,
())))
end
test/version.jl
View file @
68e0e0b5
@testset
"CCall to SBML works and SBML returns a version"
begin
@test
SBMLVersion
()
isa
VersionNumber
@test
SBML
.
Version
()
isa
VersionNumber
end
cylon-x
🤖
@cylon-x
mentioned in commit
25e0699b
·
Jul 15, 2021
mentioned in commit
25e0699b
mentioned in commit 25e0699b679e3a76f4c686c9ae47009071f21d69
Toggle commit list
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