diff --git a/cellfinder/core/detect/detect.py b/cellfinder/core/detect/detect.py index cd4e22c5..7c614d4e 100644 --- a/cellfinder/core/detect/detect.py +++ b/cellfinder/core/detect/detect.py @@ -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 diff --git a/cellfinder/core/detect/filters/volume/volume_filter.py b/cellfinder/core/detect/filters/volume/volume_filter.py index a3e4d98f..d64ae71a 100644 --- a/cellfinder/core/detect/filters/volume/volume_filter.py +++ b/cellfinder/core/detect/filters/volume/volume_filter.py @@ -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) @@ -191,6 +195,7 @@ def get_results(self) -> List[Cell]: ) ) + logger.debug("Finished splitting cell clusters.") return cells