Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Enh single channel annotation #12669

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

Merged
merged 8 commits into from
Jun 25, 2024

Conversation

nmarkowitz
Copy link
Contributor

Thanks for contributing a pull request! Please make sure you have read the
contribution guidelines
before submitting.

Please be aware that we are a loose team of volunteers so patience is
necessary. Assistance handling other issues is very welcome. We value
all user contributions, no matter how minor they are. If we are slow to
review, either the pull request needs some benchmarking, tinkering,
convincing, etc. or more likely the reviewers are simply busy. In either
case, we ask for your understanding during the review process.

Again, thanks for contributing!

Reference issue

#8946

What does this implement/fix?

Allows BrowserBase to directly toggle channel specific annotations

Additional information

Required to be pulled for mne-qt-browser pull request to work

mne-tools/mne-qt-browser#255

Copy link

welcome bot commented Jun 17, 2024

Hello! 👋 Thanks for opening your first pull request here! ❤️ We will try to get back to you soon. 🚴

@drammock
Copy link
Member

is this ready for review? if not please mark as "draft"

@nmarkowitz
Copy link
Contributor Author

is this ready for review? if not please mark as "draft"

This is ready for review. I confirmed it works

@nmarkowitz
Copy link
Contributor Author

How can I tell why checks are failing? Clicking details doesn't show any information

@larsoner
Copy link
Member

You probably need to pre-commit install --install-hooks here. Then I need to approve each run for GitHub actions to run. But at least Azure you can find by doing Details:

image

Then View more details at the bottom here:

image

Then the red Vulture job says:

mne/viz/_figure.py:242: unused method '_toggle_single_channel_annotation' (60% confidence)

and it's correct that the new code isn't used at all.

In theory this change could be implemented in the Matplotlib-based backend, but until it is, you should modify some test file to call the private method and assert something has changed about an annotation (or whatever should change).

@larsoner
Copy link
Member

@nmarkowitz I pushed a tiny commit to add a changelog entry and am marking for merge-when-green, thanks!

@larsoner larsoner enabled auto-merge (squash) June 25, 2024 13:42
@larsoner larsoner disabled auto-merge June 25, 2024 13:42
@larsoner larsoner enabled auto-merge (squash) June 25, 2024 13:42
@larsoner larsoner merged commit 8838899 into mne-tools:main Jun 25, 2024
28 checks passed
Copy link

welcome bot commented Jun 25, 2024

🎉 Congrats on merging your first pull request! 🥳 Looking forward to seeing more from you in the future! 💪

larsoner added a commit to scott-huberty/mne-python that referenced this pull request Jul 16, 2024
* upstream/main: (252 commits)
  Disable the "Back to top" button in the documentation (mne-tools#12688)
  DOC: match_channel_orders works on Epochs and Evoked, too (mne-tools#12699)
  Scale points and labels in montage plot (mne-tools#12703)
  Add license header to mne.stats.erp (mne-tools#12712)
  Update license year to 2024 (mne-tools#12713)
  Add standardized measurement error (SME) (mne-tools#12707)
  ENH: Parallel example execution in doc build (mne-tools#12708)
  MAINT: Update PR template (mne-tools#12692)
  MAINT: Fix doc build (mne-tools#12706)
  [pre-commit.ci] pre-commit autoupdate (mne-tools#12702)
  Improve documentation of ylim argument through Evoked plotting function (mne-tools#12697)
  [pre-commit.ci] pre-commit autoupdate (mne-tools#12696)
  BUG: Fix bug with CSP rank="full" (mne-tools#12694)
  MRG: Add epochs metadata summary to HTML representation (mne-tools#12686)
  Correct `Epochs.apply_function` docstring (mne-tools#12691)
  FIX: Gracefully handle missing datetime in Eyelink File (mne-tools#12687)
  MAINT: Restore SciPy pre (mne-tools#12689)
  Enh single channel annotation (mne-tools#12669)
  [pre-commit.ci] pre-commit autoupdate (mne-tools#12682)
  Bump autofix-ci/action from 1.2 to 1.3 in the actions group (mne-tools#12681)
  ...
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.

3 participants