-
Notifications
You must be signed in to change notification settings - Fork 9
Improve auto northing #79
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
Merged
Merged
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
4b2d1c7
Update pyproject.toml
aclerc 20ea2ab
update lock
aclerc f6fe5b8
add CostCircularL1
aclerc 446005f
try to fix mypy 3.9 issue
aclerc e6e2aaf
improve _calc_good_north_offset
aclerc d7aa706
Update test_math_funcs.py
aclerc 9e20952
improve CostCircularL1
aclerc 5a1d5e6
Update optimize_northing_plots.py
aclerc bcb5e3d
Update test_optimize_northing.py
aclerc 16ef005
Update optimize_northing.py
aclerc 1d73fbc
ignore mypy issue for 3.9
aclerc 102fa6f
add circ_median
aclerc 9e6690d
add rolling_circ_mean
aclerc f8c84bd
add center to rolling_circ_mean
aclerc bd39b14
use circ_median and rolling_circ_mean
aclerc 9ebdf28
update tests
aclerc 7111dfa
ignore 3.9 mypy issue
aclerc 754ef72
rolling_circ_median WIP
aclerc acfcac5
Update test_math_funcs.py
aclerc 7ec31f9
Update test_rolling_circ_mean.py
aclerc 89f259f
Update test_rolling_circ_mean.py
aclerc 3e57d07
Update test_rolling_circ_median.py
aclerc 2d5be80
update rolling_circ_median_approx
aclerc a0c0463
Update northing.py
aclerc 5f602a1
Update optimize_northing.py
aclerc cbdf5cb
Update test_northing.py
aclerc 72d005e
try to fix lint issues
aclerc 9f13f81
Update optimize_northing.py
aclerc a32f659
Update test_rolling_circ_median.py
aclerc c1857bb
Update smarteole_example.ipynb
aclerc e51a232
Update smarteole_example.ipynb
aclerc ec1ca90
Update test_rolling_circ_median.py
aclerc f50b317
update dependencies
aclerc c7e00f5
address PR comment
aclerc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Optional comment...
These tests relating to
circ_mediancould be grouped into a class for readability. I could also be tempted to separate out the tests for those that haverange_360=Falseinto it's own method for readability too.e.g.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the only advantage is readability then I'd leave them as they are, putting them in a class doesn't seem more readable to me. Granted as static methods you don't need to check for class context (I guess) but you do get extra indent by doing this, minor but it does matter for readability
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The main advantages in this scenario are...
pytest -k TestCircMedian(or in your IDE)