write

Import in python using from mcutils.utils.cifti import write

mcutils.utils.cifti.write(filename: str, arr: numpy.ndarray, axes: Tuple[nibabel.cifti2.cifti2_axes.Axis])[source]

Writes a CIFTI file guessing the extension of the filename

Parameters
  • filename – full filename of basename

  • arr – array to be stored

  • axes – CIFTI axes describing the rows/columns of a CIFTI file