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)
| 2209 | |
| 2210 | @verbose |
| 2211 | def 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 |