Skip to content

Conversation

@BatchelorJ
Copy link
Contributor

  • Moved Angle classes and functions into new module geodepy.angles
  • Test Coverage of geodepy.angles in geodepy.tests.test_angles
  • Added 3 new Angle classes (DECAngle, HPAngle, GONAngle) for class representation and method access for Decimal Degrees, HP format angles and Gradians.
  • Added support for Gradians as floats
  • Added functionality to read Degrees, Minutes and Seconds space-delimited strings into DMSAngle object
  • Added functionality to read Degrees Decimal Minutes space-delimited strings into DDMAngle object
  • Added conversion functions and methods between all supported angle types
  • Expanded test coverage
  • Backwards-compatibility supported through import of classes and functions into geodepy.convert module

@BatchelorJ BatchelorJ requested a review from harry093 September 24, 2020 01:53
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.

@BatchelorJ, wow! That's mountain of work. These changes are well thought out, thanks for doing this. My only reservation is allowing HP notation to be stored as a float. Could cause problems?

@BatchelorJ
Copy link
Contributor Author

@BatchelorJ, wow! That's mountain of work. These changes are well thought out, thanks for doing this. My only reservation is allowing HP notation to be stored as a float. Could cause problems?

I certainly agree that it can cause issues! Given that we've already implemented these functions with HP notation stored as floats in GeodePy previously, I didn't want to remove this functionality and break other users code. Also lots of other software stores HP notation as floats and I'm trying not to be too prescriptive, rather giving options for users to store data in a class if they want better type-certainty. It's more efficient but less safe to store HP notation as floats rather than in a class object, so for some applications floats may be preferred.

@harry093
Copy link
Collaborator

Point taken. Cheers

@harry093 harry093 merged commit 6ce8832 into master Sep 25, 2020
@BatchelorJ BatchelorJ deleted the New_angle_classes branch September 28, 2020 22:20
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.

3 participants