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

Bugfix if branchlen==0 in SWC #178

Merged
merged 1 commit into from
Dec 1, 2023
Merged

Bugfix if branchlen==0 in SWC #178

merged 1 commit into from
Dec 1, 2023

Conversation

michaeldeistler
Copy link
Contributor

No description provided.

jaxley/utils/swc.py Outdated Show resolved Hide resolved
@michaeldeistler michaeldeistler force-pushed the divide branch 2 times, most recently from 224dd45 to 78d5b80 Compare December 1, 2023 11:49
def _radius_generating_fn(radiuses, each_length):
def _radius_generating_fn(radiuses: np.ndarray, each_length: np.ndarray) -> Callable:
# Avoid division by 0 with the `summed_len` below.
each_length[each_length < 1e-8] = 1e-8
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the only real fix here.

@michaeldeistler michaeldeistler merged commit 59a6bca into main Dec 1, 2023
1 check passed
@michaeldeistler michaeldeistler deleted the divide branch December 1, 2023 11:55
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