'Set the nodata value for this band.'

@nodata_value.setter
def nodata_value(self, value):

    if (value is None):
        if (not capi.delete_band_nodata_value):
            raise ValueError('GDAL    >=    2.1    required    to    delete    nodata    values.')
        capi.delete_band_nodata_value(self._ptr)
    elif (not isinstance(value, (int, float))):
        raise ValueError('Nodata    value    must    be    numeric    or    None.')
    else:
        capi.set_band_nodata_value(self._ptr, value)
    self._flush()
