set_warnings

grizli.utils.set_warnings(numpy_level='ignore', astropy_level='ignore')[source]

Set global numpy and astropy warnings

Parameters
numpy_level{‘ignore’, ‘warn’, ‘raise’, ‘call’, ‘print’, ‘log’}

Numpy error level (see seterr).

astropy_level{‘error’, ‘ignore’, ‘always’, ‘default’, ‘module’, ‘once’}

Astropy error level (see simplefilter).