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

Fix spelling in warning on cHPI #12095

Merged
merged 7 commits into from
Oct 10, 2023
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions mne/_fiff/write.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,8 @@ def write_string(fid, kind, data):
except UnicodeEncodeError:
str_data = str(data).encode("latin1", errors="xmlcharrefreplace")
data_size = len(str_data) # therefore compute size here
my_dtype = ">a" # py2/3 compatible on writing -- don't ask me why
if data_size > 0:
_write(fid, str_data, kind, data_size, FIFF.FIFFT_STRING, my_dtype)
_write(fid, str_data, kind, data_size, FIFF.FIFFT_STRING, ">S")


def write_name_list(fid, kind, data):
Expand Down
4 changes: 2 additions & 2 deletions mne/chpi.py
Original file line number Diff line number Diff line change
Expand Up @@ -629,8 +629,8 @@ def _setup_hpi_amplitude_fitting(
for key in ("sss_info", "max_st"):
if len(ent["max_info"]["sss_info"]) > 0:
warn(
"Fitting cHPI amplutudes after Maxwell filtering may not to work, "
"consider fitting on the original data"
"Fitting cHPI amplitudes after Maxwell filtering may not work, "
"consider fitting on the original data."
)
break

Expand Down
5 changes: 4 additions & 1 deletion mne/viz/backends/_qt.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@
import sys
import weakref

# Do this first to make sure we import the right one before matplotlib/pyvista try
from qtpy import API_NAME # noqa: F401, isort:skip

import pyvista
from pyvistaqt.plotting import FileDialog, MainWindow
from .renderer import _TimeInteraction
from matplotlib.figure import Figure
from matplotlib.backends.backend_qt5agg import FigureCanvas
from matplotlib.backends.backend_qtagg import FigureCanvas

from qtpy.QtCore import (
Qt,
Expand Down
Loading