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
951e776d
Commit
951e776d
authored
Jul 10, 2021
by
Miroslav Kratochvil
🚴
Browse files
and fix it again
Oh my, like, this is the 5th implementation of ifelse we have here?
parent
cdff14e2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Project.toml
View file @
951e776d
...
...
@@ -4,14 +4,15 @@ authors = ["Mirek Kratochvil <miroslav.kratochvil@uni.lu>", "LCSB R3 team <lcsb-
version
=
"0.5.5"
[deps]
IfElse
=
"615f187c-cbe4-4ef1-ba3b-2fcf58d6d173"
Libdl
=
"8f399da3-3557-5675-b5ff-fb832c97cbdb"
SBML_jll
=
"bb12108a-f4ef-5f88-8ef3-0b33ff7017f1"
SparseArrays
=
"2f01184e-e22b-5df5-ae63-d93ebab69eaf"
Symbolics
=
"0c5d862f-8b57-4792-8d23-62f2024744c7"
[compat]
julia
=
"1.5"
Symbolics
=
"0.1.21, 1"
julia
=
"1.5"
[extras]
Downloads
=
"f43a241f-c20a-4ad4-852c-f6b1247861c6"
...
...
src/SBML.jl
View file @
951e776d
...
...
@@ -3,6 +3,7 @@ module SBML
using
SBML_jll
,
Libdl
using
SparseArrays
using
Symbolics
using
IfElse
include
(
"types.jl"
)
include
(
"structs.jl"
)
...
...
src/symbolics.jl
View file @
951e776d
...
...
@@ -60,7 +60,7 @@ function sbmlPiecewise(args...)
if
length
(
args
)
==
1
args
[
1
]
elseif
length
(
args
)
>=
3
Cor
e
.
ifelse
(
args
[
2
],
args
[
1
],
sbmlPiecewise
(
args
[
3
:
end
]
...
))
IfEls
e
.
ifelse
(
args
[
2
],
args
[
1
],
sbmlPiecewise
(
args
[
3
:
end
]
...
))
else
throw
(
AssertionError
(
"malformed piecewise SBML function"
))
end
...
...
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