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

MAINT: Clean up PyVista contexts #12533

Merged
merged 2 commits into from
Apr 9, 2024
Merged

MAINT: Clean up PyVista contexts #12533

merged 2 commits into from
Apr 9, 2024

Conversation

larsoner
Copy link
Member

@larsoner larsoner commented Apr 9, 2024

While doing git grep FutureWarning I was struck by how many places we catch potential PyVista warnings. I suspect these are from early days of PyVista so I'm going to remove them and hopefully things are okay. If they're not, hopefully we can use more targeted ignores. If not, then we can at least use a with _pyvista_context() to DRY the code a bit, and ideally have more targeted use of the context (rather than having tens of lines inside it!).

Once we merge this in a follow-up PR I'll add it to git-blame-revs-ignore since it's 95% whitespace changes.

@larsoner larsoner enabled auto-merge (squash) April 9, 2024 15:21
@larsoner larsoner added this to the 1.7 milestone Apr 9, 2024
@larsoner larsoner merged commit 940ac95 into mne-tools:main Apr 9, 2024
30 checks passed
@larsoner larsoner deleted the pyvista branch April 9, 2024 16:53
larsoner added a commit to larsoner/mne-python that referenced this pull request Apr 15, 2024
* upstream/main: (50 commits)
  ENH: Improve OPM auditory dataset and example (mne-tools#12539)
  MAINT: Bump to latest pydata-sphinx-theme (mne-tools#12228)
  MRG: Simplify manual installation instructions a little by dropping explicit mention of (lib)mamba (mne-tools#12362)
  fix PSD weights handling when bad annotations present (mne-tools#12538)
  Fix phase loading (mne-tools#12537)
  align FFT windows to good data spans in psd_array_welch (mne-tools#12536)
  explicitly disallow multitaper in presence of bad annotations (mne-tools#12535)
  MAINT: Clean up PyVista contexts (mne-tools#12533)
  MAINT: Complete API change of ordered (mne-tools#12534)
  MAINT: Reinstall statsmodels and improve logging (mne-tools#12532)
  MAINT: Remove scipy.signal.morlet2 (mne-tools#12531)
  Update README badge links (mne-tools#12529)
  BUG: Fix bug with reading his_id from snirf (mne-tools#12526)
  [pre-commit.ci] pre-commit autoupdate (mne-tools#12524)
  Fix file format check in _check_eeglab_fname function (mne-tools#12523)
  MAINT: Reenable picard in pre testing (mne-tools#12525)
  MAINT: Bump to large resource class (mne-tools#12522)
  MAINT: Restore 2 jobs on Windows (mne-tools#12520)
  Add exclude_after_unique option to mne.io.read_raw_edf/read_raw_edf to search for exclude channels after making channel names unique (mne-tools#12518)
  Improve consistency of sensor types in code and documentation (mne-tools#12509)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant