Skip to content

Commit

Permalink
Replace warning with log warning
Browse files Browse the repository at this point in the history
Python warning is not appropriate for a warning
about data validity.
  • Loading branch information
timj committed Jul 28, 2023
1 parent 2e74fd7 commit 037770b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/lsst/obs/subaru/ampOffset.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def run(self, exposure):

# safety check: do any pixels remain for amp offset estimation?
if (exp.mask.array & bitMask).all():
warnings.warn("All pixels masked: cannot calculate any amp offset corrections.")
self.log.warning("All pixels masked: cannot calculate any amp offset corrections.")
else:
# set up amp offset inputs
im = exp.image
Expand Down

0 comments on commit 037770b

Please sign in to comment.