Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Fix angle warning #231

Merged
merged 2 commits into from
Jan 23, 2023
Merged

Fix angle warning #231

merged 2 commits into from
Jan 23, 2023

Conversation

aphalo
Copy link
Contributor

@aphalo aphalo commented Jan 22, 2023

@slowkow Hi. Some time ago I added a warning for angles as part of pull-request #196. I put as limit for the test plus/minus 5-degrees deviations from multiples of 90 degrees as small deviations seem to not cause difficulties with repulsion, however I misplaced the closing parenthesis, so the 5 degrees margin was only active for angles larger than a multiple of 90 degrees. This pull request fixes this. Because it now triggers a call to rlang::warn(), I commented out a test case.

I put as limit for the test 5 degrees deviations from multiples of 90 degrees as small deviations seem to not cause difficulties, however I misplaced the closing parenthesis, so the 5 degrees margin was only active for angles larger than a multiple of 90 degrees.
This test case now triggers a call to rlang::warn()
@slowkow
Copy link
Owner

slowkow commented Jan 23, 2023

Good catch! Thank you for coming back to fix it with another PR.

@slowkow slowkow merged commit ab7c6ad into slowkow:master Jan 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants