seek_localize.read_dig_bids¶
-
seek_localize.read_dig_bids(fname, root, intended_for: Optional[str] = None)[source]¶ Read electrode coordinates from BIDS files.
TODO: improve to error check coordinatesystem.
- Parameters
- fname
str|pathlib.Path File path to the electrodes.tsv file, or file path to the coordsystem.json file. Each one will be inferred based on the BIDS entities inside the filename.
- intended_for
str|None Optional parameter to tell function path of the Nifti image to interpret sensor coordinates for.
- fname
- Returns
- sensors
seek_localize.Sensors A data class containing the electrode sensors.
- sensors