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 for angles.py dec2hp() and hp2...() #157

Merged
merged 5 commits into from
Nov 25, 2024

Conversation

philanderson71
Copy link
Contributor

fix for issue #156 .

…rning expected values because of the precision of float. The additional testing resulted in 7 unit tests failing.
… second interval between 0 and 360 degrees.

Fixed dec2hp()
-removed containing angles to 360 degrees in dec2hp()
-changed order of operands in test angle generation to optimise precision
= now avoids precision problems when hp angle has a whole number of minutes. Now seperates deg min and sec by parsing float as a string instead of using floating point ops.
Copy link
Collaborator

@harry093 harry093 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Phil, these are valuable changes.

@harry093 harry093 merged commit 6af0d51 into GeoscienceAustralia:master Nov 25, 2024
1 check passed
@harry093 harry093 mentioned this pull request Nov 25, 2024
@philanderson71 philanderson71 deleted the fix-for-angles.py branch November 30, 2024 03:49
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