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

[MRG] Annotation bug fix. #3946

Merged
merged 5 commits into from Feb 9, 2017
Merged

Conversation

jaeilepp
Copy link
Contributor

There was a bug when concatenating two raws with annotations where the first uses orig_time and the second does not.

Also added more test cases for annotation rejection.

meas_date = _handle_meas_date(meas_date)
extra_samps += sfreq * (meas_date - old_orig_time) + first_samps[0]

onset = annotations[1].onset + (sum(last_samps[:-1]) + extra_samps -
Copy link
Member

Choose a reason for hiding this comment

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

np.sum ?

@jaeilepp jaeilepp changed the title Annotation bug fix. [MRG] Annotation bug fix. Feb 1, 2017
@agramfort agramfort merged commit 117696c into mne-tools:master Feb 9, 2017
@agramfort
Copy link
Member

thx @jaeilepp

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.

None yet

2 participants