Skip to content

Commit

Permalink
improve detection debug logs (#375)
Browse files Browse the repository at this point in the history
* improve detection debug logs

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* remove too wordy debug logs

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
alessandrofelder and pre-commit-ci[bot] authored Feb 7, 2024
1 parent 4d19fb6 commit 448170b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cellfinder/core/detect/detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,11 @@ def main(
# processes.
cells = mp_3d_filter.process(async_results, locks, callback=callback)

print(
"Detection complete - all planes done in : {}".format(
datetime.now() - start_time
)
time_elapsed = datetime.now() - start_time
logger.debug(
f"All Planes done. Found {len(cells)} cells in {format(time_elapsed)}"
)
print("Detection complete - all planes done in : {}".format(time_elapsed))
return cells


Expand Down
5 changes: 5 additions & 0 deletions cellfinder/core/detect/filters/volume/volume_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ def get_results(self) -> List[Cell]:
)

cells = []

logger.debug(
f"Processing {len(self.cell_detector.coords_maps.items())} cells"
)
for cell_id, cell_points in self.cell_detector.coords_maps.items():
cell_volume = len(cell_points)

Expand Down Expand Up @@ -191,6 +195,7 @@ def get_results(self) -> List[Cell]:
)
)

logger.debug("Finished splitting cell clusters.")
return cells


Expand Down

0 comments on commit 448170b

Please sign in to comment.