We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently getpropery and getindex using KeepIndex return different values.
Using the example of #41, I expected the result using KeepIndex to return ComponentVector(boids = <LazyArray>) rather than only the first entry.
ComponentVector(boids = <LazyArray>)
boid = ComponentArray(pos=zeros(2), vel=zeros(2)) u0 = ComponentArray(boids=repeat([boid], 2)) u0.boids #2-element LazyArray{ComponentVector{Float64, SubArray{Float64, 1, Vector{Float64}, Tuple{UnitRange{Int64}}, true}, Tuple{Axis{(pos = 1:2, vel = 3:4)}}}}: # ComponentVector{Float64,SubArray...}(pos = [0.0, 0.0], vel = [0.0, 0.0]) # ComponentVector{Float64,SubArray...}(pos = [0.0, 0.0], vel = [0.0, 0.0]) u0[KeepIndex(:boids)] # ComponentVector{Float64}(boids = (pos = [0.0, 0.0], vel = [0.0, 0.0]))
The text was updated successfully, but these errors were encountered:
let reindex ViewAxis reuse previous axis
ed03b81
instead of just indexmap, fixes SciML#134
Successfully merging a pull request may close this issue.
Currently getpropery and getindex using KeepIndex return different values.
Using the example of #41, I expected the result using KeepIndex to return
ComponentVector(boids = <LazyArray>)
rather than only the first entry.The text was updated successfully, but these errors were encountered: