fsl.utils.assertions¶
This module contains a handful of miscellaneous assertion routines.
assertFileExists |
|
assertIsNifti3D |
|
assertIsNifti4D |
|
assertIsNifti |
|
assertNiftiShape |
|
assertIsSurfGifti |
|
assertIsFuncGifti |
|
assertIsMelodicDir |
The disabled() context manager can be used to temporarily disable
assertion checks.
-
fsl.utils.assertions._DISABLE_ASSERTIONS= False¶
-
fsl.utils.assertions.disabled()[source]¶ Context manager which allows assertion checks to be temporarily disabled.
-
fsl.utils.assertions._canDisable(func)[source]¶ Decorator used on assertion functions, allowing them to be disabled via the
disabled()context manager.