colour.algebra.get_sdiv_mode#

colour.algebra.get_sdiv_mode() Literal['Numpy', 'Ignore', 'Warning', 'Raise', 'Ignore Zero Conversion', 'Warning Zero Conversion', 'Ignore Limit Conversion', 'Warning Limit Conversion'][source]#

Return Colour safe division mode.

Returns:

Colour safe division mode, see colour.algebra.sdiv() definition for an explanation about the possible modes.

Return type:

str

Examples

>>> with sdiv_mode("Numpy"):
...     get_sdiv_mode()
'numpy'
>>> with sdiv_mode("Ignore Zero Conversion"):
...     get_sdiv_mode()
'ignore zero conversion'