Skip to content

Conversation

@BatchelorJ
Copy link
Contributor

  • Added additional overloads to Convert Module
  • Updated and new functions in Survey Module
    In surveyconvert suite:
  • New rounds attr added to Observation class
  • New meanmulti functionality in reducesetup to allow
    averaging of multiple rounds of observations
  • New config options for Standard Deviation settings
  • Initial work on gsi2stn function
  • Refactor and update of surveyconvert test suite

BatchelorJ and others added 12 commits April 9, 2019 15:24
- get standard deviation parameters from config (*.gpy) file
- add slope distance ppm standard deviation formula
- update test suite resources to incorporate new changes
- new test for gsi2msr with no config file
- modified survey function va_conv
- added test coverage for va_conv
- added function precise_inst_ht (incl. test coverage)
geodepy.surveyconvert.gsi
- changed gsi outputs to take name from .gpy file
- added radiations and joins (and test coverage)
geodepy.convert
- new functions polar2rect and rect2polar
geodepy.surveyconvert.gsi
- bugfix in gsi2stn
geodepy.tests.test_surveyconvert
- added cleanup of temp dirs, started new test for gsi2stn
- added more test coverage
- added more test coverage for DDMAngle
- minor changes to tests
number of times observation has been repeated. Change DNA output
calculation of standard deviations to incorporate repeated
observations.
rounds of observations into a single set of observations. Refactor of
surveyconvert test suite and update of example files accounting
for changes to reducesetup()
…eyconvert_gsi2stn

# Conflicts:
#	geodepy/surveyconvert/classtools.py
@BatchelorJ BatchelorJ added the enhancement New feature or request label May 28, 2019
@BatchelorJ BatchelorJ requested a review from harry093 May 28, 2019 06:56
@BatchelorJ BatchelorJ self-assigned this May 28, 2019
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.

Looks good, even though I don't understand a lot of this. :-)

def __add__(self, other):
return dec2dms(self.dec() + other.dec())

def __radd__(self, other):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not sure what this does?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This method is called Reverse Add and fixed an issue with summing together multiple DMSAngle Objects. There's a great explanation here:
https://www.reddit.com/r/learnpython/comments/3cvgpi/can_someone_explain_radd_to_me_in_simple_terms_i/

Copy link
Collaborator

Choose a reason for hiding this comment

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

If you are adding two DMSAngle objects then both should have the add method and this shouldn't be an issue?

@BatchelorJ BatchelorJ merged commit 3f44f21 into master May 30, 2019
@BatchelorJ BatchelorJ deleted the surveyconvert_gsi2stn branch May 30, 2019 22:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants