Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #617 +/- ##
==========================================
- Coverage 91.93% 90.04% -1.90%
==========================================
Files 44 44
Lines 6659 6670 +11
==========================================
- Hits 6122 6006 -116
- Misses 537 664 +127
|
LucaMarconato
left a comment
There was a problem hiding this comment.
Great PR! It simplifies the code and will make the torch dataset class more performant!
I added a few comments of changes I would make. They are all minor except for one that may require more care (the one where axes and output_axes_without_c are swapped). I can also have a deeper look at that case if you want.
|
Hi @LucaMarconato , thank you for the review, I've addressed all comments, except this one
If I don't swap the axes, there is one test that fails (see review comment). I think it might be solvable by changing the input/output axes of |
|
one more question, is |
|
Thanks for addressing the comments. I think the name is good and I agree in having it only for the raster case. If it will be needed later on we can always add it for the other elements. I will examine more the last open issue, after we resolve the conversation on that we are good to merge. |
|
@giovp I checked the code and the issue was a bug in the function Before the swap was fixing the bug because of a coincidence. I will add a targeted test for this case, and after that we can merge. |
🙏 🙏 |
|
I have finished adding tests, good to merge (thanks for addressing the other review comments)! 😊 |
I would need this refactor in order to move on with the data loader performance PR. @LucaMarconato what this PR basically does is unifying the building request code for
DataArray|DataTreewith the already existing_get_bounding_box_corners_in_intrinsic_coordinatesforDaskDataFrame|GeoPandasDataFrame. I think this is correct, as in the tests forspatial_querypass, but I am not sure that the logic is correct.I had to disable the tests for the dataloaders but they will be worked out in a separate PR. This PR is ready to review, but I would not merge it for now, and wait for finishing the dataloader improvement work.