-
Notifications
You must be signed in to change notification settings - Fork 54
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
Bugfix in grid spacing #400
Conversation
Linting results by Pylint:Your code has been rated at 8.72/10 (previous run: 8.72/10, +0.00) |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## RC_v1.5.x #400 +/- ##
=============================================
- Coverage 56.91% 56.88% -0.04%
=============================================
Files 20 20
Lines 3440 3444 +4
=============================================
+ Hits 1958 1959 +1
- Misses 1482 1485 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
Thanks for catching this @fsenf ! I fixed another bug where the y coordinate was being used for both x and y differences, and change the keyword average_type
to average_method
to be more in line with other keywords for specifying what approach to use
@JuliaKukulies : I selected you as 2nd reviewer. Is this fine for you? |
Looks good to me, @fsenf! I have a minor question/suggestion, but tested the code and am fine to merge this PR right away as well! Thanks for fixing this! |
Description
I found a bug in the get_spacing functionality and fixed it.
Problem: If x is storing in ascending and y in descending order (and vice versa), than the grid spacing increment subtract eachother - which is not wanted.
Solution: used the absolute value
Extension:
average_type
to allow to switch between averaging strategiesChecklist
Cheers, Fabian.
PS: should be very easy to review and merge back