Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Multiple evoked, plus stderr calculation #135

Closed
wants to merge 2 commits into from

Conversation

larsoner
Copy link
Member

@larsoner larsoner commented Oct 6, 2012

This is one possible solution for multiple evoked instances. This one maintains backward compatibility, but allows for reading and writing multiple setno's from evoked files. It also has a few minor fixes.

We can eventually move to having evoked.data be a list instead of using a list of evoked instances (the latter is implemented here), but that will require breaking backward compatibility. Perhaps this will work in the meantime?

@larsoner
Copy link
Member Author

larsoner commented Oct 6, 2012

Note that this addresses part of #133

@@ -98,6 +98,10 @@ class Epochs(object):
Return Evoked object containing averaged epochs as a
2D array [n_channels x n_times].

stderr() : self
Return Evoked object containing standard error ovr epochs as a
2D array [n_channels x n_times].
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ovr -> over

@larsoner
Copy link
Member Author

larsoner commented Oct 7, 2012

Let me know what you think of this version...

# two (slower) in case there are large numbers
if _do_std:
data_mean = cp.copy(data)
data[:, :] = 0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

data.fill(0.) is faster

@agramfort
Copy link
Member

merged by rebase !

see:

3fc286c

@agramfort agramfort closed this Oct 7, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants