hmm, I would have thought that for MEG interpolation you wouldn’t need those digitized scalp points. I guess maybe we still need a defined origin and sphere, and we derive those from the digitization points. I guess in principle it might be possible to infer an origin from the sensor coil locations, and use a default sphere radius, for cases where no scalp digitization occurred. @larsoner WDYT? Is that even feasible / sane?
In this case you have to pass a sphere because it can’t be automatically determined. (0, 0, 0.04) is probably reasonable for an adult. The interpolation works by projecting good channels to a spherical source space, then projecting back out to the bad sensor(s), so it needs to know a reasonable place to do this.
ahh, OK. I missed that because the param is called origin instead of sphere. so raw_filt.interpolate_bads(origin=(0, 0, 0.04)) should work. Thanks @larsoner.