Skip to content

Commit 9bb3bf9

Browse files
alexrockhilllarsoner
authored andcommitted
[BUG, MRG] fix info write access (#10626)
* fix info write access * rerun tests
1 parent e711615 commit 9bb3bf9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

mne/gui/_ieeg_locate_gui.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -309,9 +309,10 @@ def _save_ch_coords(self, info=None, verbose=None):
309309
logger.info('Saving channel positions to `info`')
310310
if info is None:
311311
info = self._info
312-
for name, ch in zip(info.ch_names, info['chs']):
313-
ch['loc'][:3] = apply_trans(
314-
self._mri_head_t, self._chs[name] / 1000) # mm->m
312+
with info._unlock():
313+
for name, ch in zip(info.ch_names, info['chs']):
314+
ch['loc'][:3] = apply_trans(
315+
self._mri_head_t, self._chs[name] / 1000) # mm->m
315316

316317
def _plot_images(self):
317318
"""Use the MRI and CT to make plots."""

0 commit comments

Comments
 (0)