Skip to content

Commit

Permalink
rm prints
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxGamill-Sheffield committed Sep 26, 2023
1 parent 3f7ebef commit 656f872
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions topostats/tracing/dnatracing.py
Original file line number Diff line number Diff line change
Expand Up @@ -1740,7 +1740,6 @@ def order_branch(self, binary_image: np.ndarray, anchor: list):
else: # will be circular so pick the first coord (is this always the case?)
start = np.argwhere(mask == 1)[0]
# order the points according to what is nearby
print("start: ", start)
ordered = self.order_branch_from_start(mask, start)

return np.array(ordered)
Expand Down Expand Up @@ -2341,9 +2340,7 @@ def average_height_trace(
for i in np.unique(labels)[1:]:
trace_img = np.where(labels==i, 1, 0)
trace_img = getSkeleton(img, trace_img).get_skeleton("zhang")
print("ANCHOR: ", branch_coords[0])
trace = self.order_branch(trace_img, branch_coords[0])
print("TRACE: ", trace[0], trace[-1])
height_trace = img[trace[:, 0], trace[:, 1]]
dist = self.coord_dist_rad(trace, centre) # self.coord_dist(trace)
dist, height_trace = self.average_uniques(dist, height_trace) # needs to be paired with coord_dist_rad
Expand Down

0 comments on commit 656f872

Please sign in to comment.