osl_dynamics.files#

Bundled data files shipped with osl-dynamics.

This subpackage provides brain atlases, MNI surfaces, masks, and other reference files needed by the processing and analysis pipelines. Each submodule exposes a directory attribute pointing to its data directory so files can be resolved by name at runtime using check_exists().

Modules#

  • parcellation — Volumetric brain parcellations (e.g. Glasser, AAL). See Parcellations for details.

  • mask — MNI152 brain masks at various resolutions and cortical surface meshes for plotting.

  • mni152_surfaces — Pre-extracted MNI152 skull/scalp surfaces for use with RHINO when no subject MRI is available.

  • scanner — MEG scanner layouts and channel name files (CTF-275, Neuromag-306).

  • scene — HCP Workbench scene files for cortical surface visualisation.

Functions#

check_exists(filename, directory)

Looks for a file in the current working directory and in osl-dynamics.

Package Contents#

osl_dynamics.files.check_exists(filename, directory)[source]#

Looks for a file in the current working directory and in osl-dynamics.

Parameters:
  • filename (str) – Name of file to look for or a path to a file.

  • directory (str) – Path to directory to look in.

Returns:

filename – Full path to the file if found.

Return type:

str

Raises:

FileNotFoundError – If the file could not be found.