Skip to content

Commit

Permalink
Fix spelling in warning on cHPI (mne-tools#12095)
Browse files Browse the repository at this point in the history
  • Loading branch information
mscheltienne committed Oct 10, 2023
1 parent fdaeb86 commit 3b6a339
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
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

0 comments on commit 3b6a339

Please sign in to comment.