Skip to content

Commit

Permalink
Fix Isolate Cells CLI script.
Browse files Browse the repository at this point in the history
  • Loading branch information
migueLib committed Jul 31, 2024
1 parent 185c680 commit 0c456a5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions mask2bbox/scripts/isolate_cells.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def get_arguments():
action="store", type=str, required=False, default=None,
help="Path to the output file with the bounding boxes.")
output.add_argument("-sm", "--sample", dest="sample",
action="store", type=int, required=False, default=5,
action="store", type=int, required=False, default=0,
help="Working the same to `-osc` but randomly select n=5 cells to explore parameters.")

tool = parser.add_argument_group(
Expand Down Expand Up @@ -162,8 +162,8 @@ def main():

# Sample images if needed
if args.sample > 0:
lg.debug(f"Saving sample bounding boxes = {args.output_sample}")
mask_boxes = mask_boxes.sample(5)
lg.debug(f"Saving sample bounding boxes = {args.sample}")
mask_boxes = mask_boxes.sample(args.sample)

# Extract and save the single cell crops
mask_boxes.extract(resize_factors=rf[mask_boxes.idx()],
Expand Down
2 changes: 1 addition & 1 deletion mask2bbox/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.0.21"
__version__ = "0.0.22"
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "mask2bbox"
version = "0.0.21"
version = "0.0.22"
authors = [
{ name="Miguel A. Ibarra-Arellano", email="[email protected]"},
]
Expand Down

0 comments on commit 0c456a5

Please sign in to comment.