Skip to content

Commit 7021f2f

Browse files
Mathieu Scheltiennesnwnde
authored andcommitted
Fix spelling in warning on cHPI (mne-tools#12095)
1 parent 864b3e6 commit 7021f2f

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

mne/_fiff/write.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,8 @@ def write_string(fid, kind, data):
133133
except UnicodeEncodeError:
134134
str_data = str(data).encode("latin1", errors="xmlcharrefreplace")
135135
data_size = len(str_data) # therefore compute size here
136-
my_dtype = ">a" # py2/3 compatible on writing -- don't ask me why
137136
if data_size > 0:
138-
_write(fid, str_data, kind, data_size, FIFF.FIFFT_STRING, my_dtype)
137+
_write(fid, str_data, kind, data_size, FIFF.FIFFT_STRING, ">S")
139138

140139

141140
def write_name_list(fid, kind, data):

mne/chpi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -629,8 +629,8 @@ def _setup_hpi_amplitude_fitting(
629629
for key in ("sss_info", "max_st"):
630630
if len(ent["max_info"]["sss_info"]) > 0:
631631
warn(
632-
"Fitting cHPI amplutudes after Maxwell filtering may not to work, "
633-
"consider fitting on the original data"
632+
"Fitting cHPI amplitudes after Maxwell filtering may not work, "
633+
"consider fitting on the original data."
634634
)
635635
break
636636

0 commit comments

Comments
 (0)