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

Function read_fiducials

mne/_fiff/meas_info.py:2211–2232  ·  view source on GitHub ↗

Read fiducials from a fiff file. Parameters ---------- fname : path-like The filename to read. %(verbose)s Returns ------- pts : list of dict List of digitizer points (each point in a dict). coord_frame : int The coordinate frame of the point

(fname, *, verbose=None)

Source from the content-addressed store, hash-verified

2209
2210@verbose
2211def read_fiducials(fname, *, verbose=None):
2212 """Read fiducials from a fiff file.
2213
2214 Parameters
2215 ----------
2216 fname : path-like
2217 The filename to read.
2218 %(verbose)s
2219
2220 Returns
2221 -------
2222 pts : list of dict
2223 List of digitizer points (each point in a dict).
2224 coord_frame : int
2225 The coordinate frame of the points (one of
2226 ``mne.io.constants.FIFF.FIFFV_COORD_...``).
2227 """
2228 fname = _check_fname(fname=fname, overwrite="read", must_exist=True)
2229 fid, tree, _ = fiff_open(fname)
2230 with fid:
2231 pts = _read_dig_fif(fid, tree)
2232 return pts, pts[0]["coord_frame"]
2233
2234
2235@verbose

Callers 14

test_fiducials_ioFunction · 0.90
coregister_fiducialsFunction · 0.85
scale_mriFunction · 0.85
_setup_fiducialsMethod · 0.85
get_mni_fiducialsFunction · 0.85
test_fiducialsFunction · 0.85
test_scale_mriFunction · 0.85
test_get_mni_fiducialsFunction · 0.85
test_coregistrationFunction · 0.85
test_coreg_class_initFunction · 0.85

Calls 3

_check_fnameFunction · 0.85
fiff_openFunction · 0.85
_read_dig_fifFunction · 0.85

Tested by 8

test_fiducials_ioFunction · 0.72
test_fiducialsFunction · 0.68
test_scale_mriFunction · 0.68
test_get_mni_fiducialsFunction · 0.68
test_coregistrationFunction · 0.68
test_coreg_class_initFunction · 0.68