SciML / SciML/ComponentArrays.jl
Compatibility with OffsetArrays
Open
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 375
- Forks
- 42
- Avg merge
- 7h 25m
- Merged PRs (30d)
- 17
Description
I can put OffsetArrays into a ComponentArray, but the offsets are not preserved:
using ComponentArrays, OffsetArrays
B = OffsetArray(randn(6,6), 0:5, 0:5)
C = OffsetArray(randn(6,6), 0:5, 0:5)
V = ComponentArray(b=B, c=C)
B[0,0] # works
V.b[0,0] # ERROR: BoundsError:
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running the Julia reproducer with ComponentArrays and OffsetArrays, then inspect the ComponentArray construction and indexing paths involved in V.b. Done means the offset indices 0:5 remain usable through the component, with the example no longer raising BoundsError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- data
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100