Colour v0.3.15 Release Notes

Release Date: 2020-01-25 // almost 2 years ago
  • Colour 0.3.15 - Alpha Milestone

    ๐Ÿ”‹ Features

    colour.colorimetry

    The typical CIE LED illuminants spectral power distributions and chromaticity coordinates have been added to the datasets: (@KelSolaar)

    • LED-B1
    • LED-B2
    • LED-B3
    • LED-B4
    • LED-B5
    • LED-BH1
    • LED-RGB1
    • LED-V1
    • LED-V2
      image

    The recommended indoor illuminants ID65 and ID50 spectral power distributions and chromaticity coordinates have been added to the datasets. (@KelSolaar)
    image

    Add colour.colorimetry.sds_and_multi_sds_to_multi_sds definition that converts given spectral and multi-spectral distributions to multi-spectral distributions. (@KelSolaar)

    colour.models

    colour.plotting

    • Importing colour is enough to be able to plot in-place of importing colour.plotting: (@KelSolaar)

      >>> import colour>>> colour.plotting.plot_image<function plot_image at 0x11e6e47a0>

    colour.quality

    ๐Ÿ›  Fixes

    colour

    Various fixes have been implemented to ensure compatibility with Python 3.8 and Numpy 1.18. (@KelSolaar, @MaxSchambach, @mzszym)

    ๐Ÿ“š Class methods were missing documentation as a consequence of adopting the new documentation build process, this has been addressed accordingly.

    colour.io

    colour.notation

    • Fix incorrect Domain-Range scale in Munsell Renotation System implementation. (@KelSolaar)

    colour.temperature

    • colour.temperature.CCT_to_uv_Krystek1985 definition was incorrectly implemented. Incorrect reading of the reference publications ended up with exponentiations being different, e.g. 10**4 was replaced with 10e4. (@OlliNiemitalo)

    ๐Ÿ”„ Changes

    colour.algebra

    • colour.algebra.cartesian_to_spherical and colour.algebra.spherical_to_cartesian use ISO conversion convention. ฯ is in range [0, +inf], ฮธ is in range [0, pi] radians, i.e. [0, 180] degrees, and ฯ† is in range [-pi, pi] radians, i.e. [-180, 180] degrees.

    colour.volume

    • colour.is_within_visible_spectrum: (@KelSolaar)
      • Signature: XYZ_outer_surface(XYZ, cmfs=STANDARD_OBSERVERS_CMFS['CIE 1931 2 Degree Standard Observer'].clone().align(DEFAULT_SPECTRAL_SHAPE_XYZ_OUTER_SURFACE), illuminant=sd_ones(DEFAULT_SPECTRAL_SHAPE_XYZ_OUTER_SURFACE), tolerance=None, **kwargs)
    • colour.volume.XYZ_outer_surface: (@KelSolaar)
      • Signature: XYZ_outer_surface(cmfs=STANDARD_OBSERVERS_CMFS['CIE 1931 2 Degree Standard Observer'].clone().align(DEFAULT_SPECTRAL_SHAPE_XYZ_OUTER_SURFACE), illuminant=sd_ones(DEFAULT_SPECTRAL_SHAPE_XYZ_OUTER_SURFACE), **kwargs)
      • Implementation: The generated CIE XYZ tristimulus values are not normalised anymore, this will only affect computation if a different illuminant than CIE Illuminant E is chosen.

    colour.plotting

    • colour.plotting.common.wrap_title: (@KelSolaar)
      • Remove