Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions morph_utils/modifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from morph_utils.measurements import dist_bwn_nodes
from scipy import interpolate
from copy import copy

import math

def prune_tree(morphology,num_node_thresh, node_types=[1,2,3,4] ):
"""will prune any segments in the tree that are shorter than a given length threhsold,
Expand Down Expand Up @@ -298,7 +298,7 @@ def resample_morphology(morph, spacing_size=None, angle_threshold=None):
new_nodes.append(new_node)

equiv_idx+=step_size
equiv_idx = np.math.floor(equiv_idx)
equiv_idx = math.floor(equiv_idx)


node_ct+=1
Expand Down
Loading