Skip to content

Commit

Permalink
sensible outputs from cli
Browse files Browse the repository at this point in the history
  • Loading branch information
bwmr committed Sep 18, 2024
1 parent 0769f9b commit 25b54f5
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions sizepicker/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,9 @@ def cli(radius,
for tomo in tomograms:

tomo = Path(tomo)
output_dir = Path(output_dir)

print("working on")
print(f"working on {tomo.name}")

p = Picker(tomo,
output_dir,
Expand All @@ -121,14 +122,14 @@ def cli(radius,
minsize_cont,
dilate_cont)

print("Contamination Mask written to..")
print(f"Contamination Mask written to {output_dir.stem}")

boxes, particles = p.detect(mask,
radius_times,
inhibit,
detection_z)

print("Initial Picks")
print(f"Found {len(boxes)} Initial Picks")

metrics, threshold = p.prefilt(particles,
stdtimes_pick)
Expand All @@ -138,4 +139,5 @@ def cli(radius,
threshold,
remove_edge)

print(f"Wrote {len(boxs_XYZ)} picks to ...")
print(f"Wrote {len(boxs_XYZ)} picks to {output_dir.stem}")
print("\n")

0 comments on commit 25b54f5

Please sign in to comment.