Skip to content

Commit

Permalink
Merge pull request #1417 from bsunnquist/ignore-claw-warnings
Browse files Browse the repository at this point in the history
Ignore expected claw monitor warnings
  • Loading branch information
mfixstsci authored Dec 28, 2023
2 parents 1500b80 + 860ab6a commit 829cbfb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jwql/instrument_monitors/nircam_monitors/claw_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import datetime
import logging
import os
import warnings

from astropy.convolution import Gaussian2DKernel, convolve
from astropy.io import fits
Expand All @@ -44,6 +45,8 @@
from jwql.utils.utils import ensure_dir_exists, filesystem_path, get_config

matplotlib.use('Agg')
warnings.filterwarnings('ignore', message="nan_treatment='interpolate', however, NaN values detected post convolution*")
warnings.filterwarnings('ignore', message='Input data contains invalid values (NaNs or infs)*')


class ClawMonitor():
Expand Down

0 comments on commit 829cbfb

Please sign in to comment.