output

Import in python using from mcutils.utils.scripts import output

mcutils.utils.scripts.output(path, format=None)[source]

Creates function to write provided output to a path

Format of the output file is based on extension: - ‘.gii’ -> GIFTI (use @’-separator to store left and right hemisphere separately) - ‘.nii’ -> CIFTI - ‘.nii.gz’ -> NIFTI

Parameters

path – output filename

Returns

function writing a volume, surface, or greyordinate array