Skip to content

Commit

Permalink
Clean-up old code and print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
e-koch committed Aug 15, 2024
1 parent 7e396b5 commit d0345cc
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions fil_finder/filfinder2D.py
Original file line number Diff line number Diff line change
Expand Up @@ -665,6 +665,7 @@ def analyze_skeletons(self,
converter=self.converter) for lab in
range(1, num + 1)]

# Now loop over the skeleton analysis for each filament object
with concurrent.futures.ProcessPoolExecutor(nthreads) as executor:
futures = [executor.submit(fil.skeleton_analysis, self.image,
verbose=verbose,
Expand All @@ -678,26 +679,8 @@ def analyze_skeletons(self,
for fil in self.filaments]
self.filaments = [future.result() for future in futures]

print(self.filaments[0].length(),)
print(self.filaments[0].branch_properties['length'],)
print(self.filaments[0].pixel_coords)

self.number_of_filaments = num

# Now loop over the skeleton analysis for each filament object
# for n, fil in enumerate(self.filaments):
# savename = "{0}_{1}".format(save_name, n)
# if verbose:
# print("Filament: %s / %s" % (n + 1, self.number_of_filaments))

# fil.skeleton_analysis(self.image, verbose=verbose,
# save_png=save_png,
# save_name=savename,
# prune_criteria=prune_criteria,
# relintens_thresh=relintens_thresh,
# branch_thresh=self.branch_thresh,
# max_prune_iter=max_prune_iter)

self.array_offsets = [fil.pixel_extents for fil in self.filaments]

branch_properties = {}
Expand Down

0 comments on commit d0345cc

Please sign in to comment.