'Sets bandwidth lower bound to effectively zero )1e-10), and for
discrete values upper bound to 1.'

def _set_bw_bounds(self, bw):

    bw[(bw < 0)] = 1e-10
    (_, ix_ord, ix_unord) = _get_type_pos(self.data_type)
    bw[ix_ord] = np.minimum(bw[ix_ord], 1.0)
    bw[ix_unord] = np.minimum(bw[ix_unord], 1.0)
    return bw
