jonniedie / ComponentArrays.jl

Arrays with arbitrarily nested named components.
MIT License
286 stars 34 forks source link

ComponentArray errors with `findall` #255

Open pdeffebach opened 3 months ago

pdeffebach commented 3 months ago

Is this expected behavior?

It's causing some annoying bugs for me.

julia> t = ComponentArray(a = [1, 2], b = [3, 4])
ComponentVector{Int64}(a = [1, 2], b = [3, 4])

julia> findall(<(2), t)
ERROR: MethodError: Cannot `convert` an object of type Int64 to an object of type Symbol