@@ -7,12 +7,12 @@ function Tables.rows(A::AbstractDiffEqArray)
77 N = length (A. u[1 ])
88 names = [
99 :timestamp ,
10- (A. sc != = nothing && A . sc . syms != = nothing ? (A. sc. syms [i] for i in 1 : N) :
10+ (A. sc != = nothing ? (states ( A. sc) [i] for i in 1 : N) :
1111 (Symbol (" value" , i) for i in 1 : N)). .. ,
1212 ]
1313 types = Type[eltype (A. t), (eltype (A. u[1 ]) for _ in 1 : N). .. ]
1414 else
15- names = [:timestamp , A. sc != = nothing && A . sc . syms != = nothing ? A. sc. syms [1 ] : :value ]
15+ names = [:timestamp , A. sc != = nothing ? states ( A. sc) [1 ] : :value ]
1616 types = Type[eltype (A. t), VT]
1717 end
1818 return AbstractDiffEqArrayRows (names, types, A. t, A. u)
@@ -31,8 +31,8 @@ struct AbstractDiffEqArrayRows{T, U}
3131 u:: U
3232end
3333function AbstractDiffEqArrayRows (names, types, t, u)
34- AbstractDiffEqArrayRows (names, types,
35- Dict (nm => i for (i, nm) in enumerate (names)), t, u)
34+ AbstractDiffEqArrayRows (Symbol .( names) , types,
35+ Dict (Symbol (nm) => i for (i, nm) in enumerate (names)), t, u)
3636end
3737
3838Base. length (x:: AbstractDiffEqArrayRows ) = length (x. u)
0 commit comments