-
Notifications
You must be signed in to change notification settings - Fork 55
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
Local bifurcation angle computation fails when a section has only one point #1078
Comments
Apart from the code to account for sections with one single point, @lidakanari we would also like to know if having only one point in the section after bifurcation is "acceptable" in a morphology, in terms of quality of the recostruction. |
Hello, |
Hi @adrien-berchet , |
You're welcome. I let you close this issue if you don't have any other question. |
@adrien-berchet maybe the function should catch this error and inform the user that the morphology is not correct? |
I think all functions should be able to consider that the morphology is valid. Nevertheless, we may add a general try/except block to give some hints to the user when the computation fails (usually because of an invalid morphology). |
https://github.com/BlueBrain/NeuroM/blob/master/neurom/features/bifurcation.py#L57
For the following bifurcation point:
bif_point [Section(id=30, type=2, n_points=1)<parent: Section(id=29), nchildren: 0>, Section(id=31, type=2, n_points=1)<parent: Section(id=29), nchildren: 2>]
local_bifurcation_angle fails because there is only one point.
See .swc file from https://bbp.epfl.ch/nexus/web/bbp/mouselight/resources/https%3A%2F%2Fbbp.epfl.ch%2Fneurosciencegraph%2Fdata%2Fneuronmorphologies%2F1661d3d0-87b3-4978-89f6-99a601b1b706
The text was updated successfully, but these errors were encountered: