Skip to content
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

Fix antialiased line divide by zero bug #1099

Merged
merged 1 commit into from
Jun 23, 2022
Merged

Fix antialiased line divide by zero bug #1099

merged 1 commit into from
Jun 23, 2022

Conversation

ianthomas23
Copy link
Member

Fixes issue #1098.

Solution is to disable the special treatment of self_intersect=True in line segments for which the start segment point is the same as the previous duplicate point. The self_intersect would do nothing in this situation anyway so avoiding it does not affect the output produced and prevents the divide by zero.

@codecov
Copy link

codecov bot commented Jun 23, 2022

Codecov Report

Merging #1099 (761dbb5) into master (daf2c4b) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #1099      +/-   ##
==========================================
+ Coverage   85.05%   85.07%   +0.01%     
==========================================
  Files          34       34              
  Lines        7514     7516       +2     
==========================================
+ Hits         6391     6394       +3     
+ Misses       1123     1122       -1     
Impacted Files Coverage Δ
datashader/glyphs/line.py 93.64% <100.00%> (+0.11%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update daf2c4b...761dbb5. Read the comment docs.

Copy link
Member

@jbednar jbednar left a comment

Choose a reason for hiding this comment

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

Thanks!

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