Skip to content

Colour 0.4.4

Compare
Choose a tag to compare
@KelSolaar KelSolaar released this 17 Dec 03:36
· 229 commits to develop since this release

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 ...