'Determine if epoch is good.'

@verbose
def _is_good_epoch(self, data, verbose=None):

    if isinstance(data, string_types):
        return (False, [data])
    if (data is None):
        return (False, ['NO_DATA'])
    n_times = len(self.times)
    if (data.shape[1] < n_times):
        return (False, ['TOO_SHORT'])
    if ((self.reject is None) and (self.flat is None)):
        return (True, None)
    else:
        if (self._reject_time is not None):
            data = data[:, self._reject_time]
        return _is_good(data, self.ch_names, self._channel_type_idx, self.reject, self.flat, full_report=True, ignore_chs=self.info['bads'])
