Skip to content

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