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 neighbor matrix for no pixels, fixes #2316 #2317

Merged
merged 2 commits into from
Apr 27, 2023
Merged

Conversation

maxnoe
Copy link
Member

@maxnoe maxnoe commented Apr 21, 2023

No description provided.

kosack
kosack previously approved these changes Apr 25, 2023
@kosack
Copy link
Contributor

kosack commented Apr 25, 2023

Does this really fix #2316? Is it understood what's going there? The example given doesn't seem to be a 1-pixel mask, but I also don't see how the given example could fail...

@maxnoe
Copy link
Member Author

maxnoe commented Apr 25, 2023

Independent of if this is the whole fix for the issue reported in #2316 , I think it is the right fix to do for the sub issues of getting the neighbormatrix for 0 or 1 pixel camera geometry, which might happen with the masking.

Tobychev
Tobychev previously approved these changes Apr 25, 2023
@maxnoe maxnoe dismissed stale reviews from Tobychev and kosack via 1111bbb April 25, 2023 13:30
@maxnoe maxnoe force-pushed the one_pixel_neighbor branch from 5275b65 to 1111bbb Compare April 25, 2023 13:30
@maxnoe
Copy link
Member Author

maxnoe commented Apr 25, 2023

Sorry @kosack, @Tobychev please review again, the changelog was missing

kosack
kosack previously approved these changes Apr 25, 2023
@maxnoe
Copy link
Member Author

maxnoe commented Apr 25, 2023

After realizing in #2316 that the problem is passing a masked camera geometry to the number of islands function I now added a check for checking that the mask is as long as the geometry in number_of_islands providing a nice error message.

@maxnoe maxnoe linked an issue Apr 25, 2023 that may be closed by this pull request
@maxnoe maxnoe merged commit db313af into main Apr 27, 2023
@maxnoe maxnoe deleted the one_pixel_neighbor branch April 27, 2023 08:16
@maxnoe maxnoe added this to the v0.19.1 milestone May 8, 2023
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.

Neighbormatrix fails to compute for geometry with a single pixel
3 participants