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

Improvements for SWC file loading #1544

Merged
merged 4 commits into from
Jun 25, 2024
Merged

Improvements for SWC file loading #1544

merged 4 commits into from
Jun 25, 2024

Conversation

mstimberg
Copy link
Member

Standardized SWC files on neuromorpho.org use the three-point soma representation, but in practice they are usually a bit off (i.e. the two exterior points are not at exactly one radius away from the center point). This PR makes our conversion code less strict to load these files. It also fixes an error that prevented the related error message to display correctly. Finally, the previous code used recursion even for going along chains of compartments, which could lead to RecursionErrors for big morphologies. This has been replaced by simpler loops.

See discussion on the Brian discourse group for context.

Many files on neuromorpho.org have deviations up to 0.05µm
Also, do not needlessly use recursion when following compartment chains.
Otherwise we can run into recursion errors for long morphologies
@mstimberg mstimberg merged commit 888cc57 into master Jun 25, 2024
62 checks passed
@mstimberg mstimberg deleted the load_swc_improvements branch June 25, 2024 14:05
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.

1 participant