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 state space set with end keyword (e.g. x[1:end, 2:3]) errors. I'd expect this to work. Providing an explicit range (e.g. x[1:n, 2:3] does not error.
Minimal Working Example
julia> x =StateSpaceSet(rand(10, 2))
2-dimensional StateSpaceSet{Float64} with 10 points
0.294520.4230660.4613360.014870.349010.5686340.2254270.1983930.5580530.9019080.1014090.740850.6705690.6568940.3847350.3990640.5635780.548240.1764970.592265
julia> x[1:end, 2]
ERROR: MethodError: no method matching axes(::StateSpaceSet{2, Float64}, ::Int64)
Closest candidates are:axes(::Core.SimpleVector, ::Integer)
@ Base essentials.jl:784axes(::Number, ::Integer)
@ Base number.jl:83axes(::RecurrenceAnalysis.AbstractRecurrenceMatrix, ::Any...)
@ RecurrenceAnalysis ~/.julia/packages/RecurrenceAnalysis/WMZHE/src/matrices/recurrence_matrix_types.jl:51...
Stacktrace:
[1] lastindex(a::StateSpaceSet{2, Float64}, d::Int64)
@ Base ./abstractarray.jl:427
[2] top-level scope
@ REPL[15]:1
Package versions
This is on StateSpaceSets v1.5.
The text was updated successfully, but these errors were encountered:
Describe the bug
Indexing a state space set with
end
keyword (e.g.x[1:end, 2:3]
) errors. I'd expect this to work. Providing an explicit range (e.g.x[1:n, 2:3]
does not error.Minimal Working Example
Package versions
This is on StateSpaceSets v1.5.
The text was updated successfully, but these errors were encountered: