Skip to content

Commit

Permalink
fixed performance gap
Browse files Browse the repository at this point in the history
  • Loading branch information
anna-grim committed Oct 11, 2024
1 parent 7e0114f commit 827967d
Show file tree
Hide file tree
Showing 15 changed files with 937 additions and 1,370 deletions.
10 changes: 5 additions & 5 deletions src/deep_neurographs/generate_proposals.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,8 +319,8 @@ def run_trimming(neurograph, proposals, radius, progress_bar):

def trim_endpoints(neurograph, i, j, radius):
# Initializations
branch_i = neurograph.get_branch(i)
branch_j = neurograph.get_branch(j)
branch_i = neurograph.branch(i)
branch_j = neurograph.branch(j)

# Check both orderings
idx_i, idx_j = trim_endpoints_ordered(branch_i, branch_j)
Expand Down Expand Up @@ -394,8 +394,8 @@ def trim_to_idx(neurograph, i, idx):
"""
# Update node
branch_xyz = neurograph.get_branch(i, key="xyz")
branch_radii = neurograph.get_branch(i, key="radius")
branch_xyz = neurograph.branch(i, key="xyz")
branch_radii = neurograph.branch(i, key="radius")
neurograph.nodes[i]["xyz"] = branch_xyz[idx]
neurograph.nodes[i]["radius"] = branch_radii[idx]

Expand Down Expand Up @@ -484,4 +484,4 @@ def tangent(branch, idx, depth):
"""
end = min(idx + depth, len(branch))
return geometry.tangent(branch[idx:end])
return geometry.tangent(branch[idx:end])
Loading

0 comments on commit 827967d

Please sign in to comment.