MCPcopy Index your code
hub / github.com/mne-tools/mne-python / _transform_to

Method _transform_to

mne/source_space/_source_space.py:791–799  ·  view source on GitHub ↗
(self, cf, mri_head_t)

Source from the content-addressed store, hash-verified

789 nib.save(img, fname)
790
791 def _transform_to(self, cf, mri_head_t):
792 # NOTE: the function transform_surface_to will also work on discrete and
793 # volume sources
794 try:
795 for s in self:
796 transform_surface_to(s, cf, mri_head_t, copy=False)
797 except Exception as inst:
798 raise RuntimeError(f"Could not transform source space ({inst})")
799 return self
800
801
802def _add_patch_info(s):

Callers 8

_prepare_for_forwardFunction · 0.80
computeMethod · 0.80
read_forward_solutionFunction · 0.80
_write_forward_solutionFunction · 0.80
read_inverse_operatorFunction · 0.80
test_stc_near_sensorsFunction · 0.80
test_dipole_fittingFunction · 0.80
test_simulate_raw_bemFunction · 0.80

Calls 1

transform_surface_toFunction · 0.85

Tested by 3

test_stc_near_sensorsFunction · 0.64
test_dipole_fittingFunction · 0.64
test_simulate_raw_bemFunction · 0.64