suppress_warnings

function of dascore.utils.misc source

suppress_warnings(
    category = <class ‘Warning’>,
)

Context manager for suppressing warnings.

Parameters

Parameter Description
category The types of warnings to suppress. Must be a subclass of Warning.