You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Indexing a TimeStepTable with a range should return a TimeStepTable (or a view of the first one), but it returns an error:
ts =Weather([Atmosphere(T =20.0, Wind =1.0, P =101.3, Rh =0.65), Atmosphere(T =20.0, Wind =1.0, P =101.3, Rh =0.65)])
Indexing like a dataframe:
ts[1:2,:]
ERROR: MethodError: no method matching getindex(::TimeStepTable{Atmosphere{…}}, ::UnitRange{Int64}, ::Colon)
The function`getindex` exists, but no method is defined for this combination of argument types.
Indexing like a vector:
ts[1:2]
ERROR: type NamedTuple has no field 1:2
The text was updated successfully, but these errors were encountered:
Indexing a TimeStepTable with a range should return a TimeStepTable (or a view of the first one), but it returns an error:
Indexing like a dataframe:
Indexing like a vector:
The text was updated successfully, but these errors were encountered: