Skip to content

Commit

Permalink
print -> warnings.warn
Browse files Browse the repository at this point in the history
  • Loading branch information
talonchandler committed Mar 18, 2024
1 parent 18d39f1 commit 8e39e41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion waveorder/focus.py
Original file line number Diff line number Diff line change
Expand Up @@ -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?"
Expand Down

0 comments on commit 8e39e41

Please sign in to comment.