Skip to content

Commit 07a63fd

Browse files
authored
Revert change to sphere="auto" (#13405)
1 parent 97fd038 commit 07a63fd

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

mne/bem.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1090,17 +1090,10 @@ def _fit_sphere_to_headshape(info, dig_kinds, *, verbose=None):
10901090
o_mm = origin_head * 1e3
10911091
o_d = origin_device * 1e3
10921092
if np.linalg.norm(origin_head[:2]) > 0.02:
1093-
msg = (
1093+
warn(
10941094
f"(X, Y) fit ({o_mm[0]:0.1f}, {o_mm[1]:0.1f}) "
10951095
"more than 20 mm from head frame origin"
10961096
)
1097-
if dig_kinds == "auto":
1098-
logger.info(msg)
1099-
logger.info("Trying again with all digitization points.")
1100-
return _fit_sphere_to_headshape(
1101-
info, dig_kinds=("extra", "eeg", "hpi", "cardinal"), verbose=verbose
1102-
)
1103-
warn(msg)
11041097
logger.info(
11051098
"Origin head coordinates:".ljust(30)
11061099
+ f"{o_mm[0]:0.1f} {o_mm[1]:0.1f} {o_mm[2]:0.1f} mm"

0 commit comments

Comments
 (0)