Commit 951e776d authored by Miroslav Kratochvil's avatar Miroslav Kratochvil 🚴
Browse files

and fix it again

Oh my, like, this is the 5th implementation of ifelse we have here?
parent cdff14e2
......@@ -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"
......
......@@ -3,6 +3,7 @@ module SBML
using SBML_jll, Libdl
using SparseArrays
using Symbolics
using IfElse
include("types.jl")
include("structs.jl")
......
......@@ -60,7 +60,7 @@ function sbmlPiecewise(args...)
if length(args) == 1
args[1]
elseif length(args) >= 3
Core.ifelse(args[2], args[1], sbmlPiecewise(args[3:end]...))
IfElse.ifelse(args[2], args[1], sbmlPiecewise(args[3:end]...))
else
throw(AssertionError("malformed piecewise SBML function"))
end
......
Supports Markdown
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