-
Notifications
You must be signed in to change notification settings - Fork 100
[MRG] ENH: Set initial time in Brain.add_data() #158
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
Conversation
LGTM +1 for merge if you're done. |
Updated the example. If others agree with the API then this is ready. |
LGTM |
@@ -857,6 +858,8 @@ def add_data(self, array, min=None, max=None, thresh=None, | |||
conserving memory when displaying different data in a loop. | |||
time_label_size : int | |||
Font size of the time label (default 14) | |||
initial_time : float |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| None
and describe it means the first time point will be used
Otherwise LGTM, but you should probably also add a test that the parameter at least can be passed in |
feb24d6
to
8a77e28
Compare
Ready and tests pass, added test and doc. |
stc['tmin'] + data.shape[1] * stc['tstep'], | ||
data.shape[1]) | ||
time = np.linspace(stc['tmin'], stc['tmin'] + data.shape[1] * stc['tstep'], | ||
data.shape[1]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The endpoint needs to be stc['tmin'] + (data.shape[1] - 1) * stc['tstep']
right?
Otherwise LGTM |
Good catch @Eric89GXL |
Thanks @christianbrodbeck |
Following up on mne-tools/mne-python#3375 CC @jaeilepp @Eric89GXL