From 8e39e4117716f1676fe04f53a5298b3c83d3860c Mon Sep 17 00:00:00 2001 From: Talon Chandler Date: Mon, 18 Mar 2024 14:38:08 -0700 Subject: [PATCH] print -> warnings.warn --- waveorder/focus.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/waveorder/focus.py b/waveorder/focus.py index dfbcbcc..709be23 100644 --- a/waveorder/focus.py +++ b/waveorder/focus.py @@ -141,7 +141,7 @@ def _check_focus_inputs( if pixel_size < 0: raise ValueError("pixel_size must be > 0") if not 0.4 < lambda_ill / pixel_size < 10: - print( + warnings.warn( f"WARNING: lambda_ill/pixel_size = {lambda_ill/pixel_size}." f"Did you use the same units?" f"Did you enter the pixel size in (demagnified) object-space units?"