Skip to content

Commit ce933f8

Browse files
chore: check if sys is scheduled
1 parent f137b1a commit ce933f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1087,7 +1087,7 @@ Given a vector of variables in the system, return the corresponding `Differentia
10871087
Else returns the variable as-is.
10881088
"""
10891089
function underscore_to_D(v::AbstractVector, sys)
1090-
maps = get_schedule(sys).dummy_sub
1090+
maps = isscheduled(sys) ? get_schedule(sys).dummy_sub : Dict()
10911091
inv_maps = Dict{valtype(maps), Vector{Base.keytype(maps)}}()
10921092

10931093
for (k, v) in maps

0 commit comments

Comments
 (0)