def check_status(self, status, ignore=()):
    '\n        Raise exception or warning based on return status of CDF call\n\n        Parameters\n        ==========\n        status : int\n            status returned by the C library\n\n        Other Parameters\n        ================\n        ignore : sequence of ctypes.c_long\n            CDF statuses to ignore. If any of these is returned by CDF library,\n            any related warnings or exceptions will *not* be raised.\n            (Default none).\n\n        Raises\n        ======\n        CDFError : if status < CDF_WARN, indicating an error\n\n        Warns\n        =====\n        CDFWarning : if CDF_WARN <= status < CDF_OK, indicating a warning.\n\n        Returns\n        =======\n        out : int\n            status (unchanged)\n        '
    if ((status == const.CDF_OK) or (status in ignore)):
        return status
    if (status < const.CDF_WARN):
        raise CDFError(status)
    else:
        warning = CDFWarning(status)
        warning.warn()
        return status
Raise exception or warning based on return status of CDF call

Parameters
==========
status : int
    status returned by the C library

Other Parameters
================
ignore : sequence of ctypes.c_long
    CDF statuses to ignore. If any of these is returned by CDF library,
    any related warnings or exceptions will *not* be raised.
    (Default none).

Raises
======
CDFError : if status < CDF_WARN, indicating an error

Warns
=====
CDFWarning : if CDF_WARN <= status < CDF_OK, indicating a warning.

Returns
=======
out : int
    status (unchanged)
def check_status(self, status, ignore=()):
    '\n        Raise exception or warning based on return status of CDF call\n\n        Parameters\n        ==========\n        status : int\n            status returned by the C library\n\n        Other Parameters\n        ================\n        ignore : sequence of ctypes.c_long\n            CDF statuses to ignore. If any of these is returned by CDF library,\n            any related warnings or exceptions will *not* be raised.\n            (Default none).\n\n        Raises\n        ======\n        CDFError : if status < CDF_WARN, indicating an error\n\n        Warns\n        =====\n        CDFWarning : if CDF_WARN <= status < CDF_OK, indicating a warning.\n\n        Returns\n        =======\n        out : int\n            status (unchanged)\n        '
    if ((status == const.CDF_OK) or (status in ignore)):
        return status
    if (status < const.CDF_WARN):
        raise CDFError(status)
    else:
        warning = CDFWarning(status)
        warning.warn()
        return status