yay thanks!

On Tue, Feb 12, 2013 at 8:59 PM, Martin Luessi <notifications@github.com>wrote:

> In mne/epochs.py:
>
> >          else:
> > -            s = "n_events : %s (all good)" % len(self.events)
> > -        s += ", tmin : %s (s)" % self.tmin
> > -        s += ", tmax : %s (s)" % self.tmax
> > -        s += ", baseline : %s" % str(self.baseline)
> > -        return "<Epochs  |  %s>" % s
> > +            s = 'n_events : %s (all good)' % len(self.events)
> > +        if len(self.event_id) > 1:
> > +            counts = ['%s: %i' % (k, len(self.events[self.events[:, 2] == v]))
>
> np.sum(self.events[:, 2] == v) would be more efficient
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/mne-tools/mne-python/pull/459/files#r2984318>.
>
>