-
Notifications
You must be signed in to change notification settings - Fork 47
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
Rasterize shapes #566
Rasterize shapes #566
Conversation
for more information, see https://pre-commit.ci
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #566 +/- ##
==========================================
- Coverage 92.56% 92.47% -0.10%
==========================================
Files 42 42
Lines 6078 6177 +99
==========================================
+ Hits 5626 5712 +86
- Misses 452 465 +13
|
Quick comments from discussion. Please add the following:
Comments on the code
|
Luca's task before merging:
Tasks for a follow up PR:
|
I removed |
Thanks looks great! I am working on the tasks listed in my two comments; I will tag you for a review of that part when I finish, thanks 😊 |
@quentinblampey I have just finalized the implementation. Could you please give a last round of review to the new changes? Thanks! |
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.
Looks good to me!
One small question: are we necessarily supposed to provide element_name
if we want to get values from the table? Because I don't see how we can get the values if element_name is None
(according to the current state of the code), which is not very convenient
(I actually have another small question but I can ask you tomorrow)
Thanks for checking the code. Actually what you spotted is an idiosyncrasy in the APIs: the public API Therefore, if we want a value from a table, I am honestly not super convinced of the API, but when we did a poll with users and other devs, they found it handier, so we decide to favor that implementation. |
Ok nice, then gonna merge now 😊 |
Shapes rasterization, i.e. converting shapes (e.g. polygons or points) into images
Use cases
Speed test
Speed: 30s on 160k cells locally
Checklist
spatialdata-sandbox