fsleyes.data
The fsleyes.data module contains FSLeyes overlay data types and
some data-related utilities.
Most FSLeyes overlay data types are defined in the fslpy library
(e.g. fsl.data.image.Image, fsl.data.mesh.Mesh). This
sub-package provides some additional overlay types that can be displayed with
FSLeyes:
The |
- fsleyes.data.guessType(path)[source]
Wrapper around the
fsl.data.utils.guessType()function from thefslpylibrary, augmented to support additional data types supported by FSLeyes.- Parameters:
path – Path to a file to be loaded
- Returns:
Tuple containing:
A data type which can be used to load the file, or
Noneif the file is not recognised.A suitable value for the
Display.overlayType()for the file, orNoneif the file type is not recognised.The file path, possibly modified (e.g. made absolute).