-
Notifications
You must be signed in to change notification settings - Fork 87
vectorize bounding box query #699
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 17 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
92d578f
vectorize adjust_bounding_box_to_real_axes
giovp 2bb5c35
update
giovp c89dcdf
replace append with insert
giovp 5bf0b43
add comment
giovp a60bf6f
vectorize
giovp 017967b
update to handle multiple boxes
giovp ab774b7
vectorize with numba
giovp 38dba25
fix corner len
giovp a934e21
fix validation
giovp 77f73f4
refactor
giovp 3adfea8
refactor
giovp dfdfdbf
add test for query with multiple bounding boxes
giovp 5c5560d
fix typing
giovp dd2c573
vectorize bounding box query on polygons
giovp be95358
add test to cover no polygon overlap (None)
giovp fad9b1a
vectorize bounding box query on points and tests
giovp 9b977d6
fix type
giovp 20fe261
wip fixes code review
LucaMarconato b8b6331
added extra test; finished applying code review changes
LucaMarconato 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
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.
Uh oh!
There was an error while loading. Please reload this page.
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.
I think
nb.types.Array[nb.float64, np.float64]may be incorrect and that the correct version isnb.types.Array(nb.float64, 2, 'C'). But I am not sure because pre-commit doesn't complain, so maybe both syntaxes are allowed.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.
Mine is wrong. Are you sure about your typing? What looks strange to me is that types like
nb.types.Array[nb.float64, nb.int64]would not have a meaning. I tried using justnb.types.Arrayand pre-commit works, maybe this is the way to go.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.
I will look into it!
Uh oh!
There was an error while loading. Please reload this page.
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.
I removed the dtype, I'd merge.