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
- Various new literals have been added to help packages using
Colour
with typing annotations. (#1198, @KelSolaar, @jamesmyatt)
colour.models
- Implement support for Apple Log Profile with
colour.models.log_encoding_AppleLogProfile
andcolour.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
- Fix numerical precision issue in
colour.difference.delta_E_CIE1994
definition. (#1206, @volrak, @KelSolaar)
colour.utilities
- Fix issue in
colour.utilities.verbose.multiline_repr
definition when an attribute representation isNone
. (#1466, @KelSolaar)
Changes
Unit Tests
- We have changed our unit tests to use
np.testing.assert_allclose
rather thannp.testing.assert_array_almost_equal
to help with tests failing on Github Actions because of minor precision issues when usingpytest-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
| ... |