Conversation
|
Hello! 👋 Thanks for opening your first pull request here! ❤️ We will try to get back to you soon. 🚴🏽♂️ |
|
Upon running tests, assert_allclose(dev_head_t_ori, dev_head_t['trans'], rtol=1e-5, atol=0)It says: I fail to understand what happens despite some investigation. |
|
here are differences in annotations I get between this branch and main I used this script |
|
@agramfort Thank you very much!
Further investigation shows the problem occurs when the mask isn't as long as times. One can see this by adding assert len(times) == len(mask)in the snippet. To maintain consistency with the old code, |
Co-authored-by: Stefan Appelhoff <stefan.appelhoff@mailbox.org>
|
🎉 Congrats on merging your first pull request! 🥳 Looking forward to seeing more from you in the future! 💪 |
|
thanks @snwnde! |
| ~~~~~~~~~~~~ | ||
| .. - Add something cool (:gh:`9192` **by new contributor** |New Contributor|_) | ||
|
|
||
| - Speed up :func:`mne.preprocessing.annotate_muscle_zscore`, :func:`mne.preprocessing.annotate_movement`, and :func:`mne.preprocessing.annotate_nan` through better annotation creation (:gh:`10089` **by new contributor** `Senwen Deng`_) |
There was a problem hiding this comment.
Should be:
.. |Senwen Deng| replace:: **Senwen Deng**
- ... |Senwen Deng|_)
@drammock can you open a quick PR or push to main to fix it?
* upstream/main: Use fixes._compare_version for version checks everywhere (mne-tools#10091) Fast annotation from mask (mne-tools#10089) fix trace offsets in butterfly mode (mne-tools#10087) fix plot_compare_evokeds topo legend axes placement (mne-tools#9927) doc: clarify ica.apply include and exclude params (mne-tools#10086) MRG: Make y a required parameter in CSP.fit_transform() (mne-tools#10084) Add scrollbar to report tag dropdown menu (mne-tools#10082)
Reference issue
Enhancement #10088.
What does this implement/fix?
The function
_annotations_from_maskin mne/preprocessing/artifact_detection.pyis rewritten to avoid the use of any for loop, which could be very time-consuming
when the number of components is large.
Additional information
This new implementation does not require any additional package.