fsl.utils.ensure

This module contains a handful of utility functions which attempt to ensure that some condition is met.

ensureIsImage

Ensures that the given img is an in-memory nibabel object.

ensureIsMRSBasis

Ensures that the given basis is an in-memory Basis object.

fsl.utils.ensure.ensureIsImage(img)[source]

Ensures that the given img is an in-memory nibabel object.

fsl.utils.ensure.ensureIsMRSBasis(basis)[source]

Ensures that the given basis is an in-memory Basis object.