JuliaDiff / JuliaDiff/ChainRulesTestUtils.jl
Better error message than Dimension mismatch
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- Julia
- Stars
- 50
- Forks
- 18
- PR merge metrics
- No merged PRs in 30d
Description
The error message when to_vec of y and y\bar are not the same length is quite cryptic
DimensionMismatch("second dimension of A, 4, does not match length of x, 7")
we could catch it and give a better error
Contributor guide
No contributing guide indexed for this repository
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
Locate the Julia implementation of to_vec and any tests covering mismatched lengths between y and y\bar. Reproduce the case shown in the issue, then verify that the resulting error explains the unequal lengths more clearly than the current DimensionMismatch message.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- testing-qa
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100