Skip to content

Commit 5e14877

Browse files
committed
💄 log output if save path is requested
1 parent da6a1ea commit 5e14877

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tiatoolbox/models/engine/nucleus_instance_segmentor.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -565,8 +565,9 @@ def _run_patch_mode(
565565
**kwargs,
566566
)
567567

568-
msg = f"Output file saved at {out}."
569-
logger.info(msg=msg)
568+
if save_path:
569+
msg = f"Output file saved at {out}."
570+
logger.info(msg=msg)
570571
return out
571572

572573
def post_process_patches( # skipcq: PYL-R0201

0 commit comments

Comments
 (0)