MCPcopy
hub / github.com/mne-tools/mne-python / reset

Method reset

mne/coreg.py:2231–2245  ·  view source on GitHub ↗

Reset all the parameters affecting the coregistration. Returns ------- self : Coregistration The modified Coregistration object.

(self)

Source from the content-addressed store, hash-verified

2229 return Transform("head", "mri", self._head_mri_t)
2230
2231 def reset(self):
2232 """Reset all the parameters affecting the coregistration.
2233
2234 Returns
2235 -------
2236 self : Coregistration
2237 The modified Coregistration object.
2238 """
2239 self._grow_hair = 0.0
2240 self.set_rotation(self._default_parameters[:3])
2241 self.set_translation(self._default_parameters[3:6])
2242 self.set_scale(self._default_parameters[6:9])
2243 self._extra_points_filter = None
2244 self._update_nearest_calc()
2245 return self
2246
2247 def _get_fiducials_distance(self):
2248 distance = dict()

Callers 2

__init__Method · 0.95
test_coregistrationFunction · 0.95

Calls 4

set_rotationMethod · 0.95
set_translationMethod · 0.95
set_scaleMethod · 0.95
_update_nearest_calcMethod · 0.95

Tested by 1

test_coregistrationFunction · 0.76