Skip to content

Commit

Permalink
minor fixes in text output
Browse files Browse the repository at this point in the history
  • Loading branch information
bwmr committed Sep 26, 2024
1 parent 4b0a307 commit 091dc6c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sizepicker/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import click

from .picker import Picker
from sizepicker.picker import Picker


@click.command()
Expand Down Expand Up @@ -108,7 +108,7 @@ def cli(radius,
tomo = Path(tomo)
output_dir = Path(output_dir)

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

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

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

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

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

metrics, threshold = p.prefilt(particles,
stdtimes_pick)
Expand Down
2 changes: 2 additions & 0 deletions sizepicker/picker.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,8 @@ def filt(self,boxes,particles_metrics,stdthreshold,remove_edge):
boxs_ZYX+=b

# Transform from ZYX to XYZ
# TODO: handle case where no particles are left after filtering

boxs_ZYX = np.stack(boxs_ZYX)
boxs_XYZ = boxs_ZYX[:,[2,1,0]]

Expand Down

0 comments on commit 091dc6c

Please sign in to comment.