diff --git a/src/interpret.jl b/src/interpret.jl index 431a6988..f43c30f6 100644 --- a/src/interpret.jl +++ b/src/interpret.jl @@ -7,7 +7,7 @@ function sbmlPiecewise(args...) elseif length(args) >= 3 IfElse.ifelse(args[2], args[1], sbmlPiecewise(args[3:end]...)) else - throw(DomainError(args, "malformed piecewise SBML function")) + IfElse.ifelse(args[2], args[1], NaN) end end