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

BUG: fix enclosed tessellation index allocation when threshold eliminates buildings #568

Merged
merged 3 commits into from
Apr 16, 2024

Conversation

martinfleis
Copy link
Member

That uncovered line @jGaboardi noticed actually contained a bug...

It is a corner case but when there are at least two intersecting buildings in an enclosure but both of them are eliminated by the intersection threshold, we were getting multiple rows indexed -1. Fixed.

…ates buildings
@martinfleis martinfleis added the bug Something isn't working label Apr 16, 2024
@martinfleis martinfleis added this to the 0.8.0 milestone Apr 16, 2024
@martinfleis martinfleis requested a review from jGaboardi April 16, 2024 10:02
@martinfleis martinfleis self-assigned this Apr 16, 2024
Copy link

codecov bot commented Apr 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.7%. Comparing base (4037c70) to head (d49f90b).
Report is 13 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##            main    #568     +/-   ##
=======================================
+ Coverage   97.4%   97.7%   +0.4%     
=======================================
  Files         26      32      +6     
  Lines       4328    4996    +668     
=======================================
+ Hits        4214    4882    +668     
  Misses       114     114             
Files Coverage Δ
momepy/functional/_elements.py 100.0% <100.0%> (ø)
momepy/functional/tests/test_elements.py 100.0% <100.0%> (ø)

Copy link
Member

@jGaboardi jGaboardi left a comment

Choose a reason for hiding this comment

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

Minor typo, but LGTM.

@jGaboardi
Copy link
Member

Co-authored-by: James Gaboardi <[email protected]>
@jGaboardi jGaboardi merged commit 593fc8e into pysal:main Apr 16, 2024
13 checks passed
@martinfleis martinfleis deleted the enclosed-uncovered branch April 16, 2024 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants