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

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

Build:
Build:
LAST BUILD BRANCH: feature/array-api-autograd
DEFAULT BRANCH: develop
Ran 23 Aug 2026 09:26AM UTC
Jobs 1
Files 631
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

23 Aug 2026 09:08AM UTC coverage: 98.346% (-0.5%) from 98.836%
32630200316

Pull #1406

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)
Pull Request #1406: PR: Implement support for *Python Array API Standard*.

49539 of 50372 relevant lines covered (98.35%)

0.98 hits per line

Coverage Regressions

Lines Coverage ∆ File
243
21.9
-1.67% colour/phenomena/sky/wilkie2021.py
125
88.84
-11.16% colour/utilities/array.py
68
47.09
6.32% colour/phenomena/sky/tests/test_wilkie2021.py
19
91.28
-0.26% colour/characterisation/correction.py
19
90.21
-9.79% colour/quality/cqs.py
18
94.38
-5.63% colour/continuous/multi_signals.py
11
94.44
-5.56% colour/algebra/common.py
10
94.82
-5.18% colour/graph/conversion.py
9
95.05
-4.95% colour/appearance/hunt.py
8
97.35
-2.65% colour/colorimetry/tristimulus_values.py
5
99.61
-0.39% colour/utilities/tests/test_array.py
4
97.01
-2.99% colour/quality/cri.py
3
99.41
-0.59% colour/algebra/interpolation.py
3
98.62
-0.16% colour/utilities/common.py
2
98.78
-1.22% colour/appearance/cam16.py
2
98.86
-1.14% colour/appearance/ciecam16.py
2
98.69
-1.31% colour/appearance/hellwig2022.py
2
98.55
-1.45% colour/appearance/kim2009.py
2
98.61
-1.39% colour/appearance/zcam.py
2
98.4
0.0% colour/notation/munsell/onnx.py
2
96.36
-3.64% colour/recovery/smits1999.py
2
96.36
0.29% colour/utilities/requirements.py
2
98.16
0.0% colour/utilities/verbose.py
1
99.49
-0.51% colour/appearance/ciecam02.py
1
99.71
-0.29% colour/colorimetry/spectrum.py
1
99.65
-0.35% colour/colorimetry/tests/test_tristimulus_values.py
1
99.57
-0.43% colour/continuous/signal.py
1
99.14
0.06% colour/recovery/gaussian.py
1
98.7
-1.3% colour/recovery/jiang2013.py
Jobs
ID Job ID Ran Files Coverage
1 32630200316.1 23 Aug 2026 09:26AM UTC 631
98.35
GitHub Action Run
Source Files on build 32630200316
  • Tree
  • List 631
  • Changed 375
  • Source Changed 0
  • Coverage Changed 375
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #1406
  • PR Base - develop (#32621981613)
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