Skip to content

Commit

Permalink
fix: fix plot recipe when single symbolic index is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
AayushSabharwal committed Jul 24, 2024
1 parent 4fcb0c0 commit 9313061
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/solutions/solution_interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ DEFAULT_PLOT_FUNC(x, y, z) = (x, y, z) # For v0.5.2 bug
idxs = idxs === nothing ? (1:length(sol.u[1])) : idxs
disc_idxs = []
cont_idxs = []
for idx in idxs
for idx in (idxs isa Union{Tuple, AbstractArray} ? idxs : [idxs])
tsidxs = get_all_timeseries_indexes(sol, idx)
if ContinuousTimeseries() in tsidxs
push!(cont_idxs, idx)
Expand Down

0 comments on commit 9313061

Please sign in to comment.