From da13368b5efecac98fdbbc5dbb08a958bb381358 Mon Sep 17 00:00:00 2001 From: Herman Sletmoen Date: Tue, 17 Jun 2025 14:37:58 +0200 Subject: [PATCH] Ensure DDEs are univariate --- src/systems/abstractsystem.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/systems/abstractsystem.jl b/src/systems/abstractsystem.jl index f95cf90eea..4fb2bdfd4c 100644 --- a/src/systems/abstractsystem.jl +++ b/src/systems/abstractsystem.jl @@ -320,7 +320,7 @@ for traitT in [ elseif is_timeseries_parameter(sys, s) push!(ts_idxs, timeseries_parameter_index(sys, s).timeseries_idx) elseif is_time_dependent(sys) && iscall(s) && issym(operation(s)) && - is_variable(sys, operation(s)(get_iv(sys))) + length(arguments(s)) == 1 && is_variable(sys, operation(s)(get_iv(sys))) # DDEs case, to detect x(t - k) push!(ts_idxs, ContinuousTimeseries()) else