github colour-science/colour v0.4.4
Colour 0.4.4

4 months ago

Colour 0.4.4 - Alpha Milestone

This release implements support for Python 3.12 (#1224).

We are now using isort to order our imports. We improved the repository style using the Scientific Python Repository Review page.

colour-visuals was made public: It is a new repository implementing various WebGPU-based visuals on top of Colour and pygfx.

Features

Packaging

We have solved the clash with https://github.com/vaab/colour by loading a known subset of the objects given by vaab/colour-0.1.5 into our namespace if the COLOUR_SCIENCE__COLOUR__IMPORT_VAAB_COLOUR=True environment variable is defined. (#1222, @KelSolaar, @tjdcs, @MichaelMauderer)

See the following issues for more information:

colour.hints

colour.models

  • Implement support for Apple Log Profile with colour.models.log_encoding_AppleLogProfile and colour.models.log_decoding_AppleLogProfile definitions. (@KelSolaar)

colour.plotting

  • Add new definitions to generate data useful for other plotting definitions and used by colour-visuals: (@KelSolaar)

  • colour.plotting.lines_daylight_locus

  • colour.plotting.lines_planckian_locus

  • colour.plotting.lines_pointer_gamut

  • colour.plotting.lines_spectral_locus

Fixes

colour.continuous

  • Ensure that colour.continuous.AbstractContinuousFunction class and sub-classes, e.g. colour.SpectralDistribution class, can be pickled. (#66c26b6, @KelSolaar)

colour.difference

colour.utilities

  • Fix issue in colour.utilities.verbose.multiline_repr definition when an attribute representation is None. (#1466, @KelSolaar)

Changes

Unit Tests

  • We have changed our unit tests to use np.testing.assert_allclose rather than np.testing.assert_array_almost_equal to help with tests failing on Github Actions because of minor precision issues when using pytest-xdist, multi-threading and caching. (@KelSolaar)

colour.constants

Object Name Author
colour.constants.DEFAULT_INT_DTYPE DTYPE_INT_DEFAULT @KelSolaar
colour.constants.DEFAULT_FLOAT_DTYPE DTYPE_FLOAT_DEFAULT ...

Don't miss a new colour release

NewReleases is sending notifications on new releases.