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

edge_information["edge_patches"] can be None in cell_detection.py #56

Open
PingjunChen opened this issue Aug 15, 2024 · 1 comment
Open
Assignees

Comments

@PingjunChen
Copy link

Describe the bug
Inside the function _clean_edge_cells of class CellPostProcessor inside cell_detection.py, it directly indexes the first element of edge_information["edge_patches"] via "edge_information["edge_patches"][0]", which can lead to an error, since the value of edge_information["edge_patches"] can be None, thus not subscriptable.

Screenshots
Screenshot 2024-08-15 at 3 11 14 PM

Additional context
This bug shall easily be resolved by adding a None value check before indexing the first element:

if edge_information["edge_patches"] is None:
    continue
@FabianHoerst
Copy link
Collaborator

Thanks for checking, I will put this on my list and check if this resolves the problem without any downstream error

@FabianHoerst FabianHoerst reopened this Aug 16, 2024
@FabianHoerst FabianHoerst self-assigned this Aug 16, 2024
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

No branches or pull requests

2 participants