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', 'Replace With Epsilon', 'Warning Replace With Epsilon'][source]#
Return the current Colour safe division mode.
- Returns:
Current Colour safe division mode. See
colour.algebra.sdiv()definition for an explanation of the possible modes.- Return type:
Examples
>>> with sdiv_mode("Numpy"): ... get_sdiv_mode() 'numpy' >>> with sdiv_mode("Ignore Zero Conversion"): ... get_sdiv_mode() 'ignore zero conversion'