Skip to content

Fix error from zero fibers in an image #1011

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 6 commits into from
Jun 13, 2023
Merged

Fix error from zero fibers in an image #1011

merged 6 commits into from
Jun 13, 2023

Conversation

camisowers
Copy link
Contributor

If you haven't already, please read through our contributing guidelines before opening your PR

What is the purpose of this PR?
When an image has no fibers in it, calculate_fiber_alignment() errors out within segment_fibers() while processing the image.
This is an issue with pd.concat() attempting to be called on an empty list.

How did you implement your changes

Easy to fix by moving the calculate_fiber_alignment() call into the wrapper function run_fiber_segmentation() for all processing rather than individual image call. This was where the function was intended to be anyways

Remaining issues

N/A

@camisowers camisowers added the bug Something isn't working label Jun 12, 2023
@camisowers camisowers self-assigned this Jun 12, 2023
@camisowers camisowers requested a review from srivarra June 12, 2023 22:25
@camisowers camisowers requested a review from ngreenwald June 12, 2023 23:33
@camisowers camisowers marked this pull request as ready for review June 13, 2023 02:13
@camisowers camisowers added this pull request to the merge queue Jun 13, 2023
Merged via the queue into main with commit 0266b96 Jun 13, 2023
@camisowers camisowers deleted the zero_fiber_images branch June 13, 2023 02:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants