turf-interpolate\index.js has a bug
Open
Nobody has claimed this yet.
@turf/interpolate
bug
need-review
- Dominant language
- TypeScript
- Stars
- 10.5k
- Forks
- 1k
- Avg merge
- 1h 11m
- Merged PRs (30d)
- 4
Description
in line#92
if (d === 0) zw = zValue;
it should be
if (d === 0) zw += zValue;
because zw is a accumulative total, you can not directly set the value.
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 at turf-interpolate/index.js line 92 and inspect how zw is accumulated when d equals zero. Confirm the behavior against the surrounding interpolation logic; done means zero-distance contributions are accumulated instead of replacing the existing total.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- data
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 52/100