Module Import alias identifier Assign NameStore ListLoad Str Str Assign NameStore Dict Str Str Str Str Str Str ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num Assign NameStore Dict Str Str Str Str Str Str ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num FunctionDef arguments args NameParam NameParam defaults Str body Expr Str If CompareEq NameLoad Str body Return Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad keyword NameLoad orelse If CompareEq NameLoad Str body Return Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad keyword NameLoad orelse Raise Call NameLoad BinOpMod Str TupleLoad NameLoad decorator_list FunctionDef arguments args defaults body Assert Call AttributeLoad NameLoad attr Call NameLoad Str ListLoad Num Num Num Assert Call AttributeLoad NameLoad attr Call NameLoad Str keyword Str ListLoad Num Num Num ImportFrom alias Expr Call NameLoad NameLoad NameLoad Str keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str If Call NameLoad NameLoad NameLoad body Return Call NameLoad NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad If CompareNotEq SubscriptLoad AttributeLoad NameLoad attr Index Num Num body Raise Call NameLoad Str Return NameLoad decorator_list FunctionDef arguments args defaults body Assert Call AttributeLoad NameLoad attr Call NameLoad Str ListLoad Num Num Num Assert Call AttributeLoad NameLoad attr Call NameLoad ListLoad Num Num Num ListLoad Num Num Num Assert CompareEq AttributeLoad Call NameLoad ListLoad Num Num Num attr NameLoad ImportFrom alias Expr Call NameLoad NameLoad NameLoad Str Expr Call NameLoad NameLoad NameLoad ListLoad Num Num Num Num decorator_list
N/A N/A numpy np N/A __all__ N/A standard_illuminant_XYZ100 as_XYZ100_w N/A cie1931 N/A A C D50 D55 D65 D75 N/A 109.85 100 35.585 N/A 98.074 100 118.232 N/A 96.422 100 82.521 N/A 95.682 100 92.149 N/A 95.047 100 108.883 N/A 94.972 100 122.638 N/A cie1964 N/A A C D50 D55 D65 D75 N/A 111.144 100 35.2 N/A 97.285 100 116.145 N/A 96.72 100 81.427 N/A 95.799 100 90.926 N/A 94.811 100 107.304 N/A 94.416 100 120.641 standard_illuminant_XYZ100 N/A N/A name observer N/A CIE 1931 2 deg N/A N/A Takes a string naming a standard illuminant, and returns its XYZ
    coordinates (normalized to Y = 100).

    We currently have the following standard illuminants in our database:

    * ``"A"``
    * ``"C"``
    * ``"D50"``
    * ``"D55"``
    * ``"D65"``
    * ``"D75"``

    If you need another that isn't on this list, then feel free to send a pull
    request.

    When in doubt, use D65: it's the whitepoint used by the sRGB standard
    (61966-2-1:1999) and ISO 10526:1999 says "D65 should be used in all
    colorimetric calculations requiring representative daylight, unless there
    are specific reasons for using a different illuminant".

    By default, we return points in the XYZ space defined by the CIE 1931 2
    degree standard observer. By specifying ``observer="CIE 1964 10 deg"``,
    you can instead get the whitepoint coordinates in XYZ space defined by the
    CIE 1964 10 degree observer. This is probably only useful if you have XYZ
    points you want to do calculations on that were somehow measured using the
    CIE 1964 color matching functions, perhaps via a spectrophotometer;
    consumer equipment (monitors, cameras, etc.) assumes the use of the CIE
    1931 standard observer in all cases I know of.

     N/A N/A observer CIE 1931 2 deg N/A N/A N/A N/A np asarray N/A cie1931 N/A name dtype float N/A N/A N/A observer CIE 1964 10 deg N/A N/A N/A N/A np asarray N/A cie1964 N/A name dtype float N/A N/A N/A ValueError N/A observer must be 'CIE 1931 2 deg' or 'CIE 1964 10 deg', not %s N/A observer N/A test_standard_illuminant_XYZ100 N/A N/A N/A N/A N/A N/A N/A np allclose N/A standard_illuminant_XYZ100 D65 N/A 95.047 100 108.883 N/A N/A N/A np allclose N/A standard_illuminant_XYZ100 D65 observer CIE 1964 10 deg N/A 94.811 100 107.304 nose.tools assert_raises N/A N/A assert_raises ValueError standard_illuminant_XYZ100 D65 observer something else N/A as_XYZ100_w N/A N/A whitepoint N/A N/A N/A A convenience function for getting whitepoints.

    ``whitepoint`` can be either a string naming a standard illuminant (see
    :func:`standard_illuminant_XYZ100`), or else a whitepoint given explicitly
    as an array-like of XYZ values.

    We internally call this function anywhere you have to specify a whitepoint
    (e.g. for CIECAM02 or CIELAB conversions).

    Always uses the "standard" 2 degree observer.

     N/A N/A isinstance whitepoint str N/A N/A N/A standard_illuminant_XYZ100 whitepoint N/A N/A whitepoint N/A N/A np asarray whitepoint dtype float N/A N/A N/A N/A whitepoint shape N/A -1 3 N/A N/A N/A ValueError Bad whitepoint shape N/A whitepoint N/A test_as_XYZ100_w N/A N/A N/A N/A N/A N/A N/A np allclose N/A as_XYZ100_w D65 N/A 95.047 100 108.883 N/A N/A N/A np allclose N/A as_XYZ100_w N/A 1 2 3 N/A 1 2 3 N/A N/A N/A N/A as_XYZ100_w N/A 1 2 3 dtype float nose.tools assert_raises N/A N/A assert_raises KeyError as_XYZ100_w D666 N/A N/A assert_raises ValueError as_XYZ100_w N/A 1 2 3 4 N/A