Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix centerlineLength function by updating previous_pair, add tests for this and riverWidthFromCenterline #2

Merged
merged 2 commits into from
Jan 3, 2024

Conversation

mthaddon
Copy link

@mthaddon mthaddon commented Jan 2, 2024

In the centerlineLength function we were never updating previous_pair, which meant we were calculating distances from the initial point rather than intermediate point.

Add tests for this and the riverWidthFromCenterline function.

Also some minor doc updates to the README.md file, one of which to clarify the return values of the riverWidthFromCenterline function.

@cyschneck
Copy link
Owner

Ha, nice catch! Thanks for the help

@cyschneck cyschneck merged commit dd1b23c into cyschneck:main Jan 3, 2024
1 check failed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants