• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

colour-science / colour / 31918257784
98%
develop: 98%

Build:
Build:
LAST BUILD BRANCH: feature/array-api-autograd
DEFAULT BRANCH: develop
Ran 16 Aug 2026 02:02AM UTC
Jobs 1
Files 628
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

16 Aug 2026 12:51AM UTC coverage: 98.325% (+0.005%) from 98.32%
31918257784

push

github

thomasmansencal
Implement support for *Python Array API Standard*.

*Colour* now dispatches array operations to the caller's backend (*NumPy*,
*JAX*, *PyTorch*) through the array-namespace machinery in
`colour.utilities.array`. Beyond the mechanical *NumPy* to namespace
conversion, this commit bundles the behaviour and public API changes
documented below so that they remain discoverable under `git blame` and
`git bisect`.

- Support for the *Python Array API Standard* was implemented: array
  operations dispatch to the input backend (*NumPy*, *JAX*, *PyTorch*)
  through the new `colour.utilities.array_namespace` and `xp_*` utilities,
  toggled with `colour.utilities.is_array_api_enabled` and
  `colour.utilities.set_array_api_enabled`.
- `colour.utilities.is_array_api_compat_installed` and
  `colour.utilities.is_array_api_extra_installed` were added.
- `colour.colorimetry.interpolate_signal`,
  `colour.colorimetry.extrapolate_signal` and
  `colour.colorimetry.trim_signal` were added, sharing the spectral
  distribution and multi-spectral distributions resampling implementation.
- `colour.colorimetry.msds_blackbody`,
  `colour.colorimetry.msds_rayleigh_jeans`,
  `colour.colorimetry.CIE_illuminant_D_series`,
  `colour.colorimetry.msds_CIE_illuminant_D_series` and
  `colour.colorimetry.msds_to_XYZ_tristimulus_weighting_factors_ASTME308`
  were added.
- `colour.appearance.eccentricity_factor_Hellwig2022` and
  `colour.appearance.hue_angle_dependency_Hellwig2022` were added.
- `colour.appearance.XYZ_to_Nayatani95` now computes the hue quadrature
  `H` correlate, previously left unset.

- The multi-spectral distributions paths of `colour.colour_fidelity_index`,
  `colour.colour_quality_scale` and `colour.colour_rendering_index` were
  vectorised.
- The `colour.temperature` correlated colour temperature solvers were
  vectorised, replacing the *SciPy* `minimize` calls with closed-form
  Gauss-Newton iterations.

- `colour.colour_rendering_index`: the *"CIE 2024"* `Q_a` gener... (continued)

16130 of 16544 new or added lines in 375 files covered. (97.5%)

268 existing lines in 16 files now uncovered.

49017 of 49852 relevant lines covered (98.33%)

0.98 hits per line

Uncovered Changes

Lines Coverage ∆ File
135
21.9
0.0% colour/phenomena/sky/wilkie2021.py
125
88.71
0.0% colour/utilities/array.py
50
47.09
0.0% colour/phenomena/sky/tests/test_wilkie2021.py
18
94.38
0.0% colour/continuous/multi_signals.py
15
90.21
0.0% colour/quality/cqs.py
10
94.82
0.0% colour/graph/conversion.py
9
94.44
0.0% colour/algebra/common.py
9
95.05
0.0% colour/appearance/hunt.py
8
97.35
0.0% colour/colorimetry/tristimulus_values.py
7
91.28
0.0% colour/characterisation/correction.py
4
93.94
0.0% colour/conftest.py
4
99.6
0.0% colour/utilities/tests/test_array.py
3
99.41
0.0% colour/algebra/interpolation.py
2
98.78
0.0% colour/appearance/cam16.py
2
98.86
0.0% colour/appearance/ciecam16.py
2
98.69
0.0% colour/appearance/hellwig2022.py
2
98.55
0.0% colour/appearance/kim2009.py
2
98.61
0.0% colour/appearance/zcam.py
2
96.36
0.0% colour/recovery/smits1999.py
1
99.49
0.0% colour/appearance/ciecam02.py
1
98.28
0.0% colour/colorimetry/illuminants.py
1
99.71
0.0% colour/colorimetry/spectrum.py
1
99.57
0.0% colour/continuous/signal.py
1
98.7
0.0% colour/recovery/jiang2013.py

Coverage Regressions

Lines Coverage ∆ File
139
21.9
0.0% colour/phenomena/sky/wilkie2021.py
38
95.52
0.39% colour/utilities/tests/test_network.py
30
95.12
0.11% colour/utilities/network.py
26
47.09
0.0% colour/phenomena/sky/tests/test_wilkie2021.py
12
91.28
0.0% colour/characterisation/correction.py
4
90.21
0.0% colour/quality/cqs.py
4
97.01
0.0% colour/quality/cri.py
3
98.62
0.0% colour/utilities/common.py
2
94.44
0.0% colour/algebra/common.py
2
98.4
0.0% colour/notation/munsell/onnx.py
2
96.36
0.0% colour/utilities/requirements.py
2
98.16
0.0% colour/utilities/verbose.py
1
99.65
0.0% colour/colorimetry/tests/test_tristimulus_values.py
1
99.14
0.0% colour/recovery/gaussian.py
1
88.71
0.0% colour/utilities/array.py
1
99.6
0.0% colour/utilities/tests/test_array.py
Jobs
ID Job ID Ran Files Coverage
1 31918257784.1 16 Aug 2026 02:02AM UTC 628
98.33
GitHub Action Run
Source Files on build 31918257784
  • Tree
  • List 628
  • Changed 6
  • Source Changed 0
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • d894c8f9 on github
  • Prev Build on feature/array-api-support (#31916495819)
  • Next Build on feature/array-api-support (#31918872492)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc