fsl.utils.assertions¶
This module contains a handful of miscellaneous assertion routines.
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.