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

Function _write_morph_map

mne/morph_map.py:149–155  ·  view source on GitHub ↗

Write a morph map to disk.

(fname, subject_from, subject_to, mmap_1, mmap_2)

Source from the content-addressed store, hash-verified

147
148
149def _write_morph_map(fname, subject_from, subject_to, mmap_1, mmap_2):
150 """Write a morph map to disk."""
151 try:
152 with start_and_end_file(fname) as fid:
153 _write_morph_map_(fid, subject_from, subject_to, mmap_1, mmap_2)
154 except Exception as exp:
155 warn(f'Could not write morph-map file "{fname}" (error: {exp})')
156
157
158def _write_morph_map_(fid, subject_from, subject_to, mmap_1, mmap_2):

Callers 1

read_morph_mapFunction · 0.85

Calls 3

start_and_end_fileFunction · 0.85
_write_morph_map_Function · 0.85
warnFunction · 0.85

Tested by

no test coverage detected